diff options
author | Struan Donald <struan@exo.org.uk> | 2018-08-29 11:20:57 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2018-09-12 14:21:49 +0100 |
commit | 07afa1a459646d91cd3ceb0c60dd26f252edf479 (patch) | |
tree | dc5be184eaf3d629064b9451a9484826b90368ad | |
parent | d68f968e0aec7651ec24ba795508a7b9162deee4 (diff) |
hook to allow cobrand to generate reports page data
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Reports.pm | 4 |
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' ); |