diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-05-13 17:11:38 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-05-13 17:11:38 +0000 |
commit | 4a59b869c04ed3188e1d2de3b9f1879ee3876dec (patch) | |
tree | 8086a4033825feb3611051d871f5d3d72f648855 /app/controllers | |
parent | 10ed306b1935834afa1aad304f1ee5c21cc807d1 (diff) | |
download | redmine-4a59b869c04ed3188e1d2de3b9f1879ee3876dec.tar.gz redmine-4a59b869c04ed3188e1d2de3b9f1879ee3876dec.zip |
Update notified_project_ids while saving record.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11840 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/my_controller.rb | 1 | ||||
-rw-r--r-- | app/controllers/users_controller.rb | 2 |
2 files changed, 0 insertions, 3 deletions
diff --git a/app/controllers/my_controller.rb b/app/controllers/my_controller.rb index 92853067b..5328991b3 100644 --- a/app/controllers/my_controller.rb +++ b/app/controllers/my_controller.rb @@ -55,7 +55,6 @@ class MyController < ApplicationController @user.pref.attributes = params[:pref] if @user.save @user.pref.save - @user.notified_project_ids = (@user.mail_notification == 'selected' ? params[:notified_project_ids] : []) set_language_if_valid @user.language flash[:notice] = l(:notice_account_updated) redirect_to my_account_path diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 5dd154dc0..3ea65c7aa 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -94,7 +94,6 @@ class UsersController < ApplicationController if @user.save @user.pref.attributes = params[:pref] @user.pref.save - @user.notified_project_ids = (@user.mail_notification == 'selected' ? params[:notified_project_ids] : []) Mailer.account_information(@user, @user.password).deliver if params[:send_information] @@ -141,7 +140,6 @@ class UsersController < ApplicationController if @user.save @user.pref.save - @user.notified_project_ids = (@user.mail_notification == 'selected' ? params[:notified_project_ids] : []) if was_activated Mailer.account_activated(@user).deliver |