summaryrefslogtreecommitdiffstats
path: root/Bugzilla/User.pm
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2008-09-17 18:03:59 +0200
committerlpsolit%gmail.com <>2008-09-17 18:03:59 +0200
commitfafc1b6ca0b40c72fa636a08661f6d585d2cc6eb (patch)
tree07d3607bc590f9f8d989618fc1a43a0d39f54cd7 /Bugzilla/User.pm
parenta9acddbb45663924f9a1d8472ed07ab13d45c073 (diff)
downloadbugzilla-fafc1b6ca0b40c72fa636a08661f6d585d2cc6eb.tar.gz
bugzilla-fafc1b6ca0b40c72fa636a08661f6d585d2cc6eb.tar.xz
Bug 417290: Add an email pref to get notifications for newly created bugs - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=mkanat
Diffstat (limited to 'Bugzilla/User.pm')
-rw-r--r--Bugzilla/User.pm18
1 files changed, 11 insertions, 7 deletions
diff --git a/Bugzilla/User.pm b/Bugzilla/User.pm
index f495132b1..aa3baa243 100644
--- a/Bugzilla/User.pm
+++ b/Bugzilla/User.pm
@@ -1430,14 +1430,18 @@ sub wants_bug_mail {
}
}
- # You role is new if the bug itself is.
- # Only makes sense for the assignee, QA contact and the CC list.
- if ($bug_is_new
- && ($relationship == REL_ASSIGNEE
+ if ($bug_is_new) {
+ # Notify about new bugs.
+ $events{+EVT_BUG_CREATED} = 1;
+
+ # You role is new if the bug itself is.
+ # Only makes sense for the assignee, QA contact and the CC list.
+ if ($relationship == REL_ASSIGNEE
|| $relationship == REL_QA
- || $relationship == REL_CC))
- {
- $events{+EVT_ADDED_REMOVED} = 1;
+ || $relationship == REL_CC)
+ {
+ $events{+EVT_ADDED_REMOVED} = 1;
+ }
}
if ($commentField =~ /Created an attachment \(/) {