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:
Go MAEDA
2020-01-21 04:23:26 +00:00
parent d438c89b1a
commit d48769f152
7 changed files with 96 additions and 1 deletions

View File

@@ -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