diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-04-06 13:15:09 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-04-06 13:15:09 +0000 |
commit | 0249ae5f500063f4d08ff09a7071cb949a534316 (patch) | |
tree | 2d544b6acb574468394dd462734b98d87bab890b /app/controllers | |
parent | beff2c54bc325e8a8f838d90aa122be823423114 (diff) | |
download | redmine-0249ae5f500063f4d08ff09a7071cb949a534316.tar.gz redmine-0249ae5f500063f4d08ff09a7071cb949a534316.zip |
Preserve status filter and page number when using lock/unlock/activate links on the users list (closes #998).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1334 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/users_controller.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index ceb70ab92..48fc6fade 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -83,7 +83,8 @@ class UsersController < ApplicationController end if @user.update_attributes(params[:user]) flash[:notice] = l(:notice_successful_update) - redirect_to :action => 'list' + # Give a string to redirect_to otherwise it would use status param as the response code + redirect_to(url_for(:action => 'list', :status => params[:status], :page => params[:page])) end end @auth_sources = AuthSource.find(:all) |