summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-02-18 13:56:35 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-02-18 13:56:35 +0000
commitdd54b1aacbebc92a5c3782981d0e23caf3771f65 (patch)
treeb9cac0e27e39b7d5a0014ceb88e8ea3bc961d058
parent8fa96feb1f5c14acf355fe28789705b769255e6e (diff)
downloadredmine-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
-rw-r--r--app/controllers/my_controller.rb2
-rw-r--r--doc/CHANGELOG2
2 files changed, 2 insertions, 2 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
diff --git a/doc/CHANGELOG b/doc/CHANGELOG
index d2934facb..5cdd12fee 100644
--- a/doc/CHANGELOG
+++ b/doc/CHANGELOG
@@ -29,7 +29,7 @@ http://redmine.rubyforge.org/
* fixed: unable to delete an issue status even if it's not used yet
* fixed: filters ignored when exporting a predefined query to csv/pdf
* fixed: crash when french "issue_edit" email notification is sent
-
+* fixed: hide mail preference not saved (my/account)
== 01/03/2006 v0.4.1