From dd54b1aacbebc92a5c3782981d0e23caf3771f65 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 18 Feb 2007 13:56:35 +0000 Subject: [PATCH] fixed: hide mail preference not saved (my/account) git-svn-id: http://redmine.rubyforge.org/svn/trunk@257 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/my_controller.rb | 2 +- doc/CHANGELOG | 2 +- 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