Defect #5593 » 5593-r13306.diff
| app/helpers/workflows_helper.rb (working copy) | ||
|---|---|---|
|
w = workflows.select {|w| w.old_status_id == old_status.id && w.new_status_id == new_status.id}.size
|
||
|
|
||
|
tag_name = "transitions[#{ old_status.id }][#{new_status.id}][#{name}]"
|
||
|
if w == 0 || w == @roles.size * @trackers.size
|
||
|
if old_status == new_status
|
||
|
"-"
|
||
|
elsif w == 0 || w == @roles.size * @trackers.size
|
||
|
|
||
|
hidden_field_tag(tag_name, "0") +
|
||
|
check_box_tag(tag_name, "1", w != 0,
|
||