aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2013-02-04 08:15:30 +0000
committerMatthew Somerville <matthew@mysociety.org>2013-02-04 08:15:30 +0000
commitd75bd4db62979ca208eadbafedb2d1dd4ac5fe1a (patch)
treeca21b58204ebb1853152a478460014dc1e45df31
parent33ffaaf0c28859cd055ab1aaa1be797ac1387a7d (diff)
Set body needed for redirect function (this whole area/body confusion here needs looking at).
-rw-r--r--perllib/FixMyStreet/App/Controller/Reports.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Reports.pm b/perllib/FixMyStreet/App/Controller/Reports.pm
index 781dee698..ef7410962 100644
--- a/perllib/FixMyStreet/App/Controller/Reports.pm
+++ b/perllib/FixMyStreet/App/Controller/Reports.pm
@@ -340,6 +340,8 @@ sub ward_check : Private {
}
}
# Given a false ward name
+ $c->stash->{body} = $c->stash->{area}
+ unless $c->stash->{body};
$c->detach( 'redirect_body' );
}