summaryrefslogtreecommitdiffstats
path: root/app/helpers/workflows_helper.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-06 12:03:25 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-06 12:03:25 +0000
commitd38d920709e648614722af2d20dda60e99c06f0f (patch)
treec4cc6ea4ac620d7283cb00f8429b2a495349e3df /app/helpers/workflows_helper.rb
parent19e2f5243c64262e8b364c84f707c1c7eb283fc5 (diff)
downloadredmine-d38d920709e648614722af2d20dda60e99c06f0f.tar.gz
redmine-d38d920709e648614722af2d20dda60e99c06f0f.zip
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
Diffstat (limited to 'app/helpers/workflows_helper.rb')
-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