summaryrefslogtreecommitdiffstats
path: root/app/controllers
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2014-01-25 13:17:08 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2014-01-25 13:17:08 +0000
commitddb6b7d1e9ce7b4c446f87e3721691f8ccddebc8 (patch)
treec91a1d07b10c62865211ca78b6372dcd528715fe /app/controllers
parenta2f869b43e0740656ba51a483d640d58e341c8ff (diff)
downloadredmine-ddb6b7d1e9ce7b4c446f87e3721691f8ccddebc8.tar.gz
redmine-ddb6b7d1e9ce7b4c446f87e3721691f8ccddebc8.zip
Successful update notice for workflows (#15831).
git-svn-id: http://svn.redmine.org/redmine/trunk@12706 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/workflows_controller.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/workflows_controller.rb b/app/controllers/workflows_controller.rb
index c216cc9db..5cfba3c62 100644
--- a/app/controllers/workflows_controller.rb
+++ b/app/controllers/workflows_controller.rb
@@ -38,6 +38,7 @@ class WorkflowsController < ApplicationController
}
}
if @role.save
+ flash[:notice] = l(:notice_successful_update)
redirect_to workflows_edit_path(:role_id => @role, :tracker_id => @tracker, :used_statuses_only => params[:used_statuses_only])
return
end
@@ -64,6 +65,7 @@ class WorkflowsController < ApplicationController
if request.post? && @role && @tracker
WorkflowPermission.replace_permissions(@tracker, @role, params[:permissions] || {})
+ flash[:notice] = l(:notice_successful_update)
redirect_to workflows_permissions_path(:role_id => @role, :tracker_id => @tracker, :used_statuses_only => params[:used_statuses_only])
return
end