@@ -38,6 +38,7 class WorkflowsController < ApplicationController | |||||
38 | } |
|
38 | } | |
39 | } |
|
39 | } | |
40 | if @role.save |
|
40 | if @role.save | |
|
41 | flash[:notice] = l(:notice_successful_update) | |||
41 | redirect_to workflows_edit_path(:role_id => @role, :tracker_id => @tracker, :used_statuses_only => params[:used_statuses_only]) |
|
42 | redirect_to workflows_edit_path(:role_id => @role, :tracker_id => @tracker, :used_statuses_only => params[:used_statuses_only]) | |
42 | return |
|
43 | return | |
43 | end |
|
44 | end | |
@@ -64,6 +65,7 class WorkflowsController < ApplicationController | |||||
64 |
|
65 | |||
65 | if request.post? && @role && @tracker |
|
66 | if request.post? && @role && @tracker | |
66 | WorkflowPermission.replace_permissions(@tracker, @role, params[:permissions] || {}) |
|
67 | WorkflowPermission.replace_permissions(@tracker, @role, params[:permissions] || {}) | |
|
68 | flash[:notice] = l(:notice_successful_update) | |||
67 | redirect_to workflows_permissions_path(:role_id => @role, :tracker_id => @tracker, :used_statuses_only => params[:used_statuses_only]) |
|
69 | redirect_to workflows_permissions_path(:role_id => @role, :tracker_id => @tracker, :used_statuses_only => params[:used_statuses_only]) | |
68 | return |
|
70 | return | |
69 | end |
|
71 | end |
General Comments 0
You need to be logged in to leave comments.
Login now