summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorMark Côté <mcote@mozilla.com>2015-06-03 05:23:03 +0200
committerByron Jones <glob@mozilla.com>2015-06-03 05:23:03 +0200
commit5cdb187d8ebf78af1f26d52ef9045c6925bfe869 (patch)
tree67bd95e1ad5667f3bf3c2251e7fab1a893904970 /Bugzilla
parent805054a0d1edb6ed6b98886fa8d70b5bcfabdeac (diff)
downloadbugzilla-5cdb187d8ebf78af1f26d52ef9045c6925bfe869.tar.gz
bugzilla-5cdb187d8ebf78af1f26d52ef9045c6925bfe869.tar.xz
Bug 1169131: add-mozreview-children.pl production run issues
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Flag.pm12
1 files changed, 10 insertions, 2 deletions
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<Methods in need of POD>
=over
@@ -1149,5 +1159,3 @@ sub _flag_types {
=item update
=back
-
-1;