diff options
author | Byron Jones <bjones@mozilla.com> | 2012-04-11 11:35:06 +0200 |
---|---|---|
committer | Byron Jones <bjones@mozilla.com> | 2012-04-11 11:35:06 +0200 |
commit | 9ffabb578d4679d90c4733964203fa3e631482e9 (patch) | |
tree | 35d7014832c37df25b7a2d028c7b5d0ba13ce99a /Bugzilla/User.pm | |
parent | 2cedff64578d719d21d040bf9c44a344b2c1cb20 (diff) | |
download | bugzilla-9ffabb578d4679d90c4733964203fa3e631482e9.tar.gz bugzilla-9ffabb578d4679d90c4733964203fa3e631482e9.tar.xz |
Bug 738152: backport product/component email event filter
Diffstat (limited to 'Bugzilla/User.pm')
-rw-r--r-- | Bugzilla/User.pm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Bugzilla/User.pm b/Bugzilla/User.pm index e9d2754f7..60dbb5f83 100644 --- a/Bugzilla/User.pm +++ b/Bugzilla/User.pm @@ -1643,7 +1643,9 @@ our %names_to_events = ( 'attachments.mimetype' => EVT_ATTACHMENT_DATA, 'attachments.ispatch' => EVT_ATTACHMENT_DATA, 'dependson' => EVT_DEPEND_BLOCK, - 'blocked' => EVT_DEPEND_BLOCK); + 'blocked' => EVT_DEPEND_BLOCK, + 'product' => EVT_COMPONENT, + 'component' => EVT_COMPONENT); # Returns true if the user wants mail for a given bug change. # Note: the "+" signs before the constants suppress bareword quoting. @@ -1662,7 +1664,7 @@ sub wants_bug_mail { } else { # Catch-all for any change not caught by a more specific event - $events{+EVT_OTHER} = 1; + $events{+EVT_OTHER} = 1; } # If the user is in a particular role and the value of that role |