From 0fe5c7b3e0d8875bff29e3a17230e94de416fa41 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Mon, 12 Nov 2007 16:43:49 +0000 Subject: Added an option on 'My account' for users who don't want to be notified of changes that they make. git-svn-id: http://redmine.rubyforge.org/svn/trunk@899 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/my_controller.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'app/controllers/my_controller.rb') diff --git a/app/controllers/my_controller.rb b/app/controllers/my_controller.rb index 5a1b128f9..2fa5a9d9c 100644 --- a/app/controllers/my_controller.rb +++ b/app/controllers/my_controller.rb @@ -56,6 +56,7 @@ class MyController < ApplicationController @user.attributes = params[:user] @user.mail_notification = (params[:notification_option] == 'all') @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 = (params[:notification_option] == 'selected' ? params[:notified_project_ids] : []) -- cgit v1.2.3