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 /process_bug.cgi | |
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 'process_bug.cgi')
-rwxr-xr-x | process_bug.cgi | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/process_bug.cgi b/process_bug.cgi index b3d979960..448b42c40 100755 --- a/process_bug.cgi +++ b/process_bug.cgi @@ -373,7 +373,9 @@ else { ############################## # Do Actual Database Updates # ############################## +my $req_minor_update = $cgi->param('minor_update') ? 1 : 0; foreach my $bug (@bug_objects) { + my $minor_update = $bug->has_unsent_changes ? 0 : $req_minor_update; my $changes = $bug->update(); if ($changes->{'bug_status'}) { @@ -386,7 +388,7 @@ foreach my $bug (@bug_objects) { } } - $bug->send_changes($changes, $vars); + $bug->send_changes($changes, $vars, $minor_update); } # Delete the session token used for the mass-change. |