mirror of
https://github.com/redmine/redmine.git
synced 2025-11-15 09:46:02 +01:00
Enable users to receive email notifications about high issues (only) (#32628).
Patch by Jan Schulz-Hofen. git-svn-id: http://svn.redmine.org/redmine/trunk@19449 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -33,6 +33,7 @@ class UserPreference < ActiveRecord::Base
|
||||
'comments_sorting',
|
||||
'warn_on_leaving_unsaved',
|
||||
'no_self_notified',
|
||||
'notify_about_high_priority_issues',
|
||||
'textarea_font',
|
||||
'recently_used_projects',
|
||||
'history_default_tab',
|
||||
@@ -89,6 +90,9 @@ class UserPreference < ActiveRecord::Base
|
||||
def no_self_notified; (self[:no_self_notified] == true || self[:no_self_notified] == '1'); end
|
||||
def no_self_notified=(value); self[:no_self_notified]=value; end
|
||||
|
||||
def notify_about_high_priority_issues; (self[:notify_about_high_priority_issues] == true || self[:notify_about_high_priority_issues] == '1'); end
|
||||
def notify_about_high_priority_issues=(value); self[:notify_about_high_priority_issues]=value; end
|
||||
|
||||
def activity_scope; Array(self[:activity_scope]) ; end
|
||||
def activity_scope=(value); self[:activity_scope]=value ; end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user