aboutsummaryrefslogtreecommitdiffstats
path: root/perllib
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2018-08-29 11:20:57 +0100
committerStruan Donald <struan@exo.org.uk>2018-09-12 14:21:49 +0100
commit07afa1a459646d91cd3ceb0c60dd26f252edf479 (patch)
treedc5be184eaf3d629064b9451a9484826b90368ad /perllib
parentd68f968e0aec7651ec24ba795508a7b9162deee4 (diff)
hook to allow cobrand to generate reports page data
Diffstat (limited to 'perllib')
-rw-r--r--perllib/FixMyStreet/App/Controller/Reports.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Reports.pm b/perllib/FixMyStreet/App/Controller/Reports.pm
index 3414f9a2f..b079ba68e 100644
--- a/perllib/FixMyStreet/App/Controller/Reports.pm
+++ b/perllib/FixMyStreet/App/Controller/Reports.pm
@@ -54,6 +54,10 @@ sub index : Path : Args(0) {
return 1;
}
+ if ( $c->cobrand->call_hook('report_page_data') ) {
+ return 1;
+ }
+
if ( my $body = $c->cobrand->all_reports_single_body ) {
$c->stash->{body} = $body;
$c->detach( 'redirect_body' );