summaryrefslogtreecommitdiffstats
path: root/app/controllers/roles_controller.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2015-01-07 22:52:23 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2015-01-07 22:52:23 +0000
commitb1e105abe2a2bcad90b1e61ae64fd8bb4dbec588 (patch)
treeba802e4d86135e4630e65f820084d6db1c831a86 /app/controllers/roles_controller.rb
parent0eda7765fa55eee98646152278b7ef976f49e7c8 (diff)
downloadredmine-b1e105abe2a2bcad90b1e61ae64fd8bb4dbec588.tar.gz
redmine-b1e105abe2a2bcad90b1e61ae64fd8bb4dbec588.zip
Redirect to the current page when reordering roles (#18769).
Patch by Jérôme BATAILLE. git-svn-id: http://svn.redmine.org/redmine/trunk@13852 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/roles_controller.rb')
-rw-r--r--app/controllers/roles_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/roles_controller.rb b/app/controllers/roles_controller.rb
index a74d8bb91..79dec9d51 100644
--- a/app/controllers/roles_controller.rb
+++ b/app/controllers/roles_controller.rb
@@ -71,7 +71,7 @@ class RolesController < ApplicationController
def update
if @role.update_attributes(params[:role])
flash[:notice] = l(:notice_successful_update)
- redirect_to roles_path
+ redirect_to roles_path(:page => params[:page])
else
render :action => 'edit'
end