aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Council.pm
diff options
context:
space:
mode:
authorDave Arter <davea@mysociety.org>2018-04-03 12:45:01 +0100
committerDave Arter <davea@mysociety.org>2018-04-03 12:45:01 +0100
commit15259c13abb273ba300462854bcbd1d6aa9b3568 (patch)
treeae8515c19fda940e5a9813cdb3f098c80c07e82c /perllib/FixMyStreet/App/Controller/Council.pm
parenta719de88c7b11d3259d229fae2eb37f747ced0b1 (diff)
parent5938e38771062bb739efebf25932665d7894c975 (diff)
Merge branch 'issues/commercial/793-buckinghamshire-demo'
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Council.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Council.pm7
1 files changed, 5 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Council.pm b/perllib/FixMyStreet/App/Controller/Council.pm
index 85976ae45..2e2dce0f7 100644
--- a/perllib/FixMyStreet/App/Controller/Council.pm
+++ b/perllib/FixMyStreet/App/Controller/Council.pm
@@ -51,8 +51,11 @@ sub load_and_check_areas : Private {
# Cobrand may wish to add area types to look up for a point at runtime.
# This can be used for, e.g., parish councils on a particular council
- # cobrand.
- $area_types = $c->cobrand->call_hook("add_extra_area_types" => $area_types) || $area_types;
+ # cobrand. NB three-tier councils break the alerts pages, so don't run the
+ # hook if we're on an alerts page.
+ unless ($c->stash->{area_check_action} eq 'alert') {
+ $area_types = $c->cobrand->call_hook("add_extra_area_types" => $area_types) || $area_types;
+ }
my $all_areas;