From 1d96fa1689470945545ac8e0f239357185e832a7 Mon Sep 17 00:00:00 2001 From: Pami Ketolainen Date: Fri, 13 Mar 2015 14:23:54 -0400 Subject: Bug 1062718 - add the ability to disable sending of mail when updating bugs r=dylan,a=sgreen --- process_bug.cgi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'process_bug.cgi') 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. -- cgit v1.2.3-24-g4f1b