Browse Source

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
tags/2.0.0
Jean-Philippe Lang 12 years ago
parent
commit
7c97832002
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      app/controllers/users_controller.rb

+ 1
- 1
app/controllers/users_controller.rb View 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

Loading…
Cancel
Save