aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Report/New.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2019-08-09 12:47:10 +0100
committerDave Arter <davea@mysociety.org>2019-08-16 14:25:13 +0100
commitb45dec26710e83aed051f4eebc2b0d3b80ff525a (patch)
treed0a796e23acf1bb2227d1be5c0c59673e0b6703e /perllib/FixMyStreet/App/Controller/Report/New.pm
parent5fa588c7be0e3cf62a3f90924d68f8db803a6fb2 (diff)
[Westminster] Do not create any reporter alerts.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Report/New.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Report/New.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report/New.pm b/perllib/FixMyStreet/App/Controller/Report/New.pm
index 53459baee..a19c43af8 100644
--- a/perllib/FixMyStreet/App/Controller/Report/New.pm
+++ b/perllib/FixMyStreet/App/Controller/Report/New.pm
@@ -1554,6 +1554,7 @@ sub create_reporter_alert : Private {
my ( $self, $c ) = @_;
return if $c->stash->{no_reporter_alert};
+ return if $c->cobrand->call_hook('suppress_reporter_alerts');
my $problem = $c->stash->{report};
my $alert = $c->model('DB::Alert')->find_or_create( {