summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-05-13 08:33:55 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-05-13 08:33:55 +0000
commit7c9783200286740bc9e9ac3d3c227e0b26ccdb17 (patch)
tree9b6d1696c8a2cf69d67521052dd92967c8b6fda3
parent46e48ad3f7c22e03eb481f4cf5608b254ae85c97 (diff)
downloadredmine-7c9783200286740bc9e9ac3d3c227e0b26ccdb17.tar.gz
redmine-7c9783200286740bc9e9ac3d3c227e0b26ccdb17.zip
Redirect to referer when deleting a user (#10865).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9678 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--app/controllers/users_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb
index 3b42e7e54..ae7b047df 100644
--- a/app/controllers/users_controller.rb
+++ b/app/controllers/users_controller.rb
@@ -174,7 +174,7 @@ class UsersController < ApplicationController
def destroy
@user.destroy
respond_to do |format|
- format.html { redirect_to(users_url) }
+ format.html { redirect_to_referer_or(users_url) }
format.api { head :ok }
end
end