aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Reports.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2013-05-21 13:02:38 +0100
committerMatthew Somerville <matthew@mysociety.org>2013-05-21 13:02:38 +0100
commit83f861e0c3abc9e030256b149a836b30f4653e18 (patch)
treee5fa238753a630881d7e7d4b16a2b13045a95fec /perllib/FixMyStreet/App/Controller/Reports.pm
parent405e702f0b7f1b99946aea0d8ad028c53e5db53a (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.pm5
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;