diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-06-27 18:11:06 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-07-15 12:30:31 +0100 |
commit | 34198b1d52dd38c4947a4073eecfe7ffff52afb3 (patch) | |
tree | 94c1e1ea269e753f0adcb0023f472f7ac2d31ab1 /perllib/FixMyStreet/App/Controller/Council.pm | |
parent | 4eede46db49e74581f39e33bcd5e11b8638eaa9b (diff) |
Allow editing of category on admin report edit.
This also updates the body column to match the category.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Council.pm')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Council.pm | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Council.pm b/perllib/FixMyStreet/App/Controller/Council.pm index a5915aa46..06a23aec9 100644 --- a/perllib/FixMyStreet/App/Controller/Council.pm +++ b/perllib/FixMyStreet/App/Controller/Council.pm @@ -55,7 +55,12 @@ sub load_and_check_areas : Private { $params{generation} = $c->config->{MAPIT_GENERATION} if $c->config->{MAPIT_GENERATION}; - if ( $c->stash->{fetch_all_areas} ) { + if ($c->stash->{prefetched_all_areas}) { + $all_areas = { + map { $_ => { id => $_ } } + @{$c->stash->{prefetched_all_areas}} + }; + } elsif ( $c->stash->{fetch_all_areas} ) { my %area_types = map { $_ => 1 } @$area_types; $all_areas = mySociety::MaPit::call( 'point', |