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/BugMail.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/BugMail.pm')
-rw-r--r-- | Bugzilla/BugMail.pm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Bugzilla/BugMail.pm b/Bugzilla/BugMail.pm index 8b4219787..7dfb48238 100644 --- a/Bugzilla/BugMail.pm +++ b/Bugzilla/BugMail.pm @@ -225,6 +225,9 @@ sub Send { my $date = $params->{dep_only} ? $end : $bug->delta_ts; $date = format_time($date, '%a, %d %b %Y %T %z', 'UTC'); + my $minor_update = $changer->in_group(Bugzilla->params->{minor_update_group}) + && $params->{minor_update}; + foreach my $user_id (keys %recipients) { my %rels_which_want; my $user = $user_cache{$user_id} ||= new Bugzilla::User($user_id); @@ -244,7 +247,8 @@ sub Send { $start ? \@diffs : [], $comments, $params->{dep_only}, - $changer)) + $changer, + $minor_update)) { $rels_which_want{$relationship} = $recipients{$user_id}->{$relationship}; |