Restored rescue statement removed in r9684.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.4-stable@9685 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2012-05-13 09:46:36 +00:00
parent 60cdcd5522
commit 81c207b193
1 changed files with 2 additions and 0 deletions

View File

@ -169,6 +169,8 @@ class UsersController < ApplicationController
format.api { render_validation_errors(@user) }
end
end
rescue ::ActionController::RedirectBackError
redirect_to :controller => 'users', :action => 'edit', :id => @user
end
def destroy