summaryrefslogtreecommitdiffstats
path: root/app/controllers/my_controller.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2013-05-13 16:38:08 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2013-05-13 16:38:08 +0000
commit10ed306b1935834afa1aad304f1ee5c21cc807d1 (patch)
tree5edcd6a4384969296e803df80870647d45184706 /app/controllers/my_controller.rb
parent0dce4761a868eafaf216bf83e41860bf841926d8 (diff)
downloadredmine-10ed306b1935834afa1aad304f1ee5c21cc807d1.tar.gz
redmine-10ed306b1935834afa1aad304f1ee5c21cc807d1.zip
Fixed that locking and unlocking a user resets the email notification checkbox (#14020).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11839 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/my_controller.rb')
-rw-r--r--app/controllers/my_controller.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/app/controllers/my_controller.rb b/app/controllers/my_controller.rb
index 84f5b20ca..92853067b 100644
--- a/app/controllers/my_controller.rb
+++ b/app/controllers/my_controller.rb
@@ -53,7 +53,6 @@ class MyController < ApplicationController
if request.post?
@user.safe_attributes = params[:user]
@user.pref.attributes = params[:pref]
- @user.pref[:no_self_notified] = (params[:no_self_notified] == '1')
if @user.save
@user.pref.save
@user.notified_project_ids = (@user.mail_notification == 'selected' ? params[:notified_project_ids] : [])