]> source.dussan.org Git - redmine.git/commitdiff
Redirect to referer when deleting a user (#10865).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 13 May 2012 08:33:55 +0000 (08:33 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 13 May 2012 08:33:55 +0000 (08:33 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9678 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/users_controller.rb

index 3b42e7e546d1f2bb7d2864d4f0c8eb8fb01a50b9..ae7b047dff8642950dcdcd57c7db10c38951e44b 100644 (file)
@@ -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