diff options
author | Matthew Somerville <matthew@mysociety.org> | 2013-05-21 13:02:38 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2013-05-21 13:02:38 +0100 |
commit | 83f861e0c3abc9e030256b149a836b30f4653e18 (patch) | |
tree | e5fa238753a630881d7e7d4b16a2b13045a95fec /perllib/FixMyStreet/App/Controller/Reports.pm | |
parent | 405e702f0b7f1b99946aea0d8ad028c53e5db53a (diff) |
Redirect away from incorrect council pages on council sites.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Reports.pm')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Reports.pm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Reports.pm b/perllib/FixMyStreet/App/Controller/Reports.pm index deb14ea77..7e0cccc7b 100644 --- a/perllib/FixMyStreet/App/Controller/Reports.pm +++ b/perllib/FixMyStreet/App/Controller/Reports.pm @@ -47,6 +47,11 @@ sub index : Path : Args(0) { return 1; } + if ( my $body = $c->cobrand->all_reports_single_body ) { + $c->stash->{body} = $body; + $c->detach( 'redirect_body' ); + } + # Fetch all areas of the types we're interested in my @bodies = $c->model('DB::Body')->all; @bodies = sort { strcoll($a->name, $b->name) } @bodies; |