From 81c207b193e4b6a5e05e45301a2f90ac840747f0 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 13 May 2012 09:46:36 +0000 Subject: [PATCH] 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 --- app/controllers/users_controller.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 0c5fd9e89..8b7bf6d02 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -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