From 5cdb187d8ebf78af1f26d52ef9045c6925bfe869 Mon Sep 17 00:00:00 2001 From: Mark Côté Date: Wed, 3 Jun 2015 11:23:03 +0800 Subject: Bug 1169131: add-mozreview-children.pl production run issues --- Bugzilla/Flag.pm | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'Bugzilla') diff --git a/Bugzilla/Flag.pm b/Bugzilla/Flag.pm index e87f1f674..830c60a57 100644 --- a/Bugzilla/Flag.pm +++ b/Bugzilla/Flag.pm @@ -81,6 +81,8 @@ use constant AUDIT_REMOVES => 0; use constant SKIP_REQUESTEE_ON_ERROR => 1; +our $disable_flagmail = 0; + sub DB_COLUMNS { my $dbh = Bugzilla->dbh; return qw( @@ -977,6 +979,10 @@ or deleted. sub notify { my ($class, $flag, $old_flag, $obj, $timestamp) = @_; + if ($disable_flagmail) { + return; + } + my ($bug, $attachment); if (blessed($obj) && $obj->isa('Bugzilla::Attachment')) { $attachment = $obj; @@ -1124,6 +1130,10 @@ sub _flag_types { return $flag_types; } +1; + +__END__ + =head1 B =over @@ -1149,5 +1159,3 @@ sub _flag_types { =item update =back - -1; -- cgit v1.2.3-24-g4f1b