diff options
author | Struan Donald <struan@exo.org.uk> | 2018-08-29 12:27:58 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2018-09-12 14:21:49 +0100 |
commit | 57c79ad84cbc72d1683d6082a4605b52fccf314a (patch) | |
tree | 256c5931f852212374b041485558fb302c7f7b14 /perllib/FixMyStreet/App/Controller/Reports.pm | |
parent | 07afa1a459646d91cd3ceb0c60dd26f252edf479 (diff) |
[Zurich] use report_page_data cobrand hook
remove hard coded report page behaviour
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Reports.pm')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Reports.pm | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Reports.pm b/perllib/FixMyStreet/App/Controller/Reports.pm index b079ba68e..9826a8945 100644 --- a/perllib/FixMyStreet/App/Controller/Reports.pm +++ b/perllib/FixMyStreet/App/Controller/Reports.pm @@ -31,29 +31,6 @@ Show the summary page of all reports. sub index : Path : Args(0) { my ( $self, $c ) = @_; - # Zurich goes straight to map page, with all reports - if ( $c->cobrand->moniker eq 'zurich' ) { - $c->stash->{page} = 'reports'; - $c->forward( 'stash_report_filter_status' ); - $c->forward( 'load_and_group_problems' ); - $c->stash->{body} = { id => 0 }; # So template can fetch the list - - if ($c->get_param('ajax')) { - $c->detach('ajax', [ 'reports/_problem-list.html' ]); - } - - my $pins = $c->stash->{pins}; - FixMyStreet::Map::display_map( - $c, - latitude => @$pins ? $pins->[0]{latitude} : 0, - longitude => @$pins ? $pins->[0]{longitude} : 0, - area => 274456, - pins => $pins, - any_zoom => 1, - ); - return 1; - } - if ( $c->cobrand->call_hook('report_page_data') ) { return 1; } |