aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller
diff options
context:
space:
mode:
authorEdmund von der Burg <evdb@mysociety.org>2011-06-15 16:47:21 +0100
committerEdmund von der Burg <evdb@mysociety.org>2011-06-15 16:47:21 +0100
commit4e04d0f2abbbd368b9ad4148bb970c1c7130b30d (patch)
tree48ffd384a09f215ff35f090d09732f46f94ca235 /perllib/FixMyStreet/App/Controller
parent1b0114aa9aafb612b73205989b1316ba1dfd4857 (diff)
parentd6e4d4998bf0327567d745c256a76fee966faf35 (diff)
Merge branch 'master' of ssh://git.mysociety.org/data/git/public/fixmystreet
Diffstat (limited to 'perllib/FixMyStreet/App/Controller')
-rw-r--r--perllib/FixMyStreet/App/Controller/Reports.pm1
-rw-r--r--perllib/FixMyStreet/App/Controller/Root.pm4
2 files changed, 3 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Reports.pm b/perllib/FixMyStreet/App/Controller/Reports.pm
index a885bb13d..850433d3c 100644
--- a/perllib/FixMyStreet/App/Controller/Reports.pm
+++ b/perllib/FixMyStreet/App/Controller/Reports.pm
@@ -275,6 +275,7 @@ sub load_and_group_problems : Private {
my %problem = zip @cols, @problem;
if ( !$problem{council} ) {
# Problem was not sent to any council, add to possible councils
+ $problem{councils} = 0;
while ($problem{areas} =~ /,($re_councils)(?=,)/g) {
add_row( \%problem, $1, \%fixed, \%open );
}
diff --git a/perllib/FixMyStreet/App/Controller/Root.pm b/perllib/FixMyStreet/App/Controller/Root.pm
index 7e2acc03c..9cdf0b523 100644
--- a/perllib/FixMyStreet/App/Controller/Root.pm
+++ b/perllib/FixMyStreet/App/Controller/Root.pm
@@ -89,8 +89,8 @@ sub page_error_404_not_found : Private {
sub page_error_410_gone : Private {
my ( $self, $c, $error_msg ) = @_;
- $c->stash->{template} = 'errors/page_error_410_gone.html';
- $c->stash->{error_msg} = $error_msg;
+ $c->stash->{template} = 'index.html';
+ $c->stash->{error} = $error_msg;
$c->response->status(410);
}