diff options
author | Pami Ketolainen <pami.ketolainen@jollamobile.com> | 2015-03-13 19:23:54 +0100 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2015-03-13 19:27:47 +0100 |
commit | 1d96fa1689470945545ac8e0f239357185e832a7 (patch) | |
tree | ede67cda677cfbf63bd05dd18f7884c0d931f6dc /Bugzilla/User.pm | |
parent | 592e6fda4108c6241344d236a2c182bb9ce10d76 (diff) | |
download | bugzilla-1d96fa1689470945545ac8e0f239357185e832a7.tar.gz bugzilla-1d96fa1689470945545ac8e0f239357185e832a7.tar.xz |
Bug 1062718 - add the ability to disable sending of mail when updating bugs
r=dylan,a=sgreen
Diffstat (limited to 'Bugzilla/User.pm')
-rw-r--r-- | Bugzilla/User.pm | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Bugzilla/User.pm b/Bugzilla/User.pm index b28d09323..fdc54de04 100644 --- a/Bugzilla/User.pm +++ b/Bugzilla/User.pm @@ -2037,7 +2037,8 @@ our %names_to_events = ( # Note: the "+" signs before the constants suppress bareword quoting. sub wants_bug_mail { my $self = shift; - my ($bug, $relationship, $fieldDiffs, $comments, $dep_mail, $changer) = @_; + my ($bug, $relationship, $fieldDiffs, $comments, $dep_mail, $changer, + $minor_update) = @_; # Make a list of the events which have happened during this bug change, # from the point of view of this user. @@ -2115,6 +2116,10 @@ sub wants_bug_mail { if ($wants_mail && $bug->bug_status eq 'UNCONFIRMED') { $wants_mail &= $self->wants_mail([EVT_UNCONFIRMED], $relationship); } + + if ($wants_mail && $minor_update) { + $wants_mail &= $self->wants_mail([EVT_MINOR_UPDATE], $relationship); + } return $wants_mail; } |