diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-02-18 13:56:35 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-02-18 13:56:35 +0000 |
commit | dd54b1aacbebc92a5c3782981d0e23caf3771f65 (patch) | |
tree | b9cac0e27e39b7d5a0014ceb88e8ea3bc961d058 /app/controllers/my_controller.rb | |
parent | 8fa96feb1f5c14acf355fe28789705b769255e6e (diff) | |
download | redmine-dd54b1aacbebc92a5c3782981d0e23caf3771f65.tar.gz redmine-dd54b1aacbebc92a5c3782981d0e23caf3771f65.zip |
fixed: hide mail preference not saved (my/account)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@257 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/my_controller.rb')
-rw-r--r-- | app/controllers/my_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/my_controller.rb b/app/controllers/my_controller.rb index e29c78e03..fcb3d2617 100644 --- a/app/controllers/my_controller.rb +++ b/app/controllers/my_controller.rb @@ -51,7 +51,7 @@ class MyController < ApplicationController @pref = @user.pref @user.attributes = params[:user] @user.pref.attributes = params[:pref] - if request.post? and @user.save + if request.post? and @user.save and @user.pref.save set_localization flash.now[:notice] = l(:notice_account_updated) self.logged_in_user.reload |