Successful update notice for workflows (#15831).
git-svn-id: http://svn.redmine.org/redmine/trunk@12706 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
a2f869b43e
commit
ddb6b7d1e9
|
@ -38,6 +38,7 @@ class WorkflowsController < ApplicationController
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if @role.save
|
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])
|
redirect_to workflows_edit_path(:role_id => @role, :tracker_id => @tracker, :used_statuses_only => params[:used_statuses_only])
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
@ -64,6 +65,7 @@ class WorkflowsController < ApplicationController
|
||||||
|
|
||||||
if request.post? && @role && @tracker
|
if request.post? && @role && @tracker
|
||||||
WorkflowPermission.replace_permissions(@tracker, @role, params[:permissions] || {})
|
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])
|
redirect_to workflows_permissions_path(:role_id => @role, :tracker_id => @tracker, :used_statuses_only => params[:used_statuses_only])
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue