summaryrefslogtreecommitdiffstats
path: root/app/helpers/workflows_helper.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2019-06-06 14:47:34 +0000
committerGo MAEDA <maeda@farend.jp>2019-06-06 14:47:34 +0000
commit2e0ec5b0e66d288a476d79b2163a316dbbed0f8c (patch)
treecdd82de304e23392567e3323c89d18d025eb1bc0 /app/helpers/workflows_helper.rb
parentac6ab7e74e21f748c2361b6dc35464db629d95f5 (diff)
downloadredmine-2e0ec5b0e66d288a476d79b2163a316dbbed0f8c.tar.gz
redmine-2e0ec5b0e66d288a476d79b2163a316dbbed0f8c.zip
Remove trailing whitespaces from app (#31506).
Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@18230 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers/workflows_helper.rb')
-rw-r--r--app/helpers/workflows_helper.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/helpers/workflows_helper.rb b/app/helpers/workflows_helper.rb
index 61381794f..c09310acd 100644
--- a/app/helpers/workflows_helper.rb
+++ b/app/helpers/workflows_helper.rb
@@ -21,7 +21,7 @@ module WorkflowsHelper
def options_for_workflow_select(name, objects, selected, options={})
option_tags = ''.html_safe
multiple = false
- if selected
+ if selected
if selected.size == objects.size
selected = 'all'
else
@@ -51,7 +51,7 @@ module WorkflowsHelper
options = [["", ""], [l(:label_readonly), "readonly"]]
options << [l(:label_required), "required"] unless field_required?(field)
html_options = {}
-
+
if perm = permissions[status.id][name]
if perm.uniq.size > 1 || perm.size < @roles.size * @trackers.size
options << [l(:label_no_change_option), "no_change"]
@@ -76,7 +76,7 @@ module WorkflowsHelper
def transition_tag(workflows, old_status, new_status, name)
w = workflows.select {|w| w.old_status == old_status && w.new_status == new_status}.size
-
+
tag_name = "transitions[#{ old_status.try(:id) || 0 }][#{new_status.id}][#{name}]"
if old_status == new_status
check_box_tag(tag_name, "1", true,