From d38d920709e648614722af2d20dda60e99c06f0f Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Wed, 6 Nov 2019 12:03:25 +0000 Subject: [PATCH] cleanup: rubocop: fix Layout/AlignArguments in app/helpers/workflows_helper.rb git-svn-id: http://svn.redmine.org/redmine/trunk@18923 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/helpers/workflows_helper.rb | 9 +++++---- 1 file 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