aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Council.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2016-09-06 16:07:30 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2016-09-09 15:51:33 +0100
commit2835ee9d82d508e32720138702ca3879a41c19db (patch)
treeed7de10c4898a0e897ff58074b3b822d8ab87e2d /perllib/FixMyStreet/App/Controller/Council.pm
parent2acf9eb59867c299da568bf77c9019fe6c3eb9ff (diff)
Add manage screen for editing priority/category.
This is a cut-down version of the full inspect screen. We truncate the co-ordinates just in case (they should be anyway but e.g. the test report isn't).
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Council.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Council.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Council.pm b/perllib/FixMyStreet/App/Controller/Council.pm
index 06a23aec9..0e7553dc4 100644
--- a/perllib/FixMyStreet/App/Controller/Council.pm
+++ b/perllib/FixMyStreet/App/Controller/Council.pm
@@ -36,7 +36,7 @@ there are no areas then return false.
=cut
sub load_and_check_areas : Private {
- my ( $self, $c ) = @_;
+ my ( $self, $c, $prefetched_all_areas ) = @_;
my $latitude = $c->stash->{latitude};
my $longitude = $c->stash->{longitude};
@@ -55,10 +55,10 @@ sub load_and_check_areas : Private {
$params{generation} = $c->config->{MAPIT_GENERATION}
if $c->config->{MAPIT_GENERATION};
- if ($c->stash->{prefetched_all_areas}) {
+ if ($prefetched_all_areas) {
$all_areas = {
map { $_ => { id => $_ } }
- @{$c->stash->{prefetched_all_areas}}
+ @$prefetched_all_areas
};
} elsif ( $c->stash->{fetch_all_areas} ) {
my %area_types = map { $_ => 1 } @$area_types;