summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/helpers/workflows_helper.rb9
1 files changed, 5 insertions, 4 deletions
diff --git a/app/helpers/workflows_helper.rb b/app/helpers/workflows_helper.rb
index f9c545e5a..a21143160 100644
--- a/app/helpers/workflows_helper.rb
+++ b/app/helpers/workflows_helper.rb
@@ -76,22 +76,23 @@ module WorkflowsHelper
def transition_tag(transition_count, old_status, new_status, name)
w = transition_count
-
tag_name = "transitions[#{ old_status.try(:id) || 0 }][#{new_status.id}][#{name}]"
if old_status == new_status
check_box_tag(tag_name, "1", true,
- {:disabled => true, :class => "old-status-#{old_status.try(:id) || 0} new-status-#{new_status.id}"})
+ {:disabled => true, :class => "old-status-#{old_status.try(:id) || 0} new-status-#{new_status.id}"})
elsif w == 0 || w == @roles.size * @trackers.size
hidden_field_tag(tag_name, "0", :id => nil) +
check_box_tag(tag_name, "1", w != 0,
- :class => "old-status-#{old_status.try(:id) || 0} new-status-#{new_status.id}")
+ :class => "old-status-#{old_status.try(:id) || 0} new-status-#{new_status.id}")
else
- select_tag tag_name,
+ select_tag(
+ tag_name,
options_for_select([
[l(:general_text_Yes), "1"],
[l(:general_text_No), "0"],
[l(:label_no_change_option), "no_change"]
], "no_change")
+ )
end
end
end