summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-25 06:33:00 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-25 06:33:00 +0000
commit52d8b21f8dc745ecf3b050b60af53a3411a1d36a (patch)
treeafb58e8b7a1dc646f5d45deeefa0fc70a70ad55b /app
parent13ce734fc86c29690837416ab2661cc73a5c0980 (diff)
downloadredmine-52d8b21f8dc745ecf3b050b60af53a3411a1d36a.tar.gz
redmine-52d8b21f8dc745ecf3b050b60af53a3411a1d36a.zip
code layout clean up app/controllers/workflows_controller.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19287 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/controllers/workflows_controller.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/app/controllers/workflows_controller.rb b/app/controllers/workflows_controller.rb
index de4f59a13..8aa438b06 100644
--- a/app/controllers/workflows_controller.rb
+++ b/app/controllers/workflows_controller.rb
@@ -97,14 +97,18 @@ class WorkflowsController < ApplicationController
@target_roles = params[:target_role_ids].blank? ?
nil : Role.where(:id => params[:target_role_ids]).to_a
if request.post?
- if params[:source_tracker_id].blank? || params[:source_role_id].blank? || (@source_tracker.nil? && @source_role.nil?)
+ if params[:source_tracker_id].blank? || params[:source_role_id].blank? ||
+ (@source_tracker.nil? && @source_role.nil?)
flash.now[:error] = l(:error_workflow_copy_source)
elsif @target_trackers.blank? || @target_roles.blank?
flash.now[:error] = l(:error_workflow_copy_target)
else
WorkflowRule.copy(@source_tracker, @source_role, @target_trackers, @target_roles)
flash[:notice] = l(:notice_successful_update)
- redirect_to workflows_copy_path(:source_tracker_id => @source_tracker, :source_role_id => @source_role)
+ redirect_to(
+ workflows_copy_path(:source_tracker_id => @source_tracker,
+ :source_role_id => @source_role)
+ )
end
end
end