diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-05-02 17:05:43 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-05-08 15:32:12 +0100 |
commit | 505953fc71a6142826e1e5743a0a3dc18e306748 (patch) | |
tree | 79bb4371dee529c70a98ef8160da3d412a161d0f /perllib/FixMyStreet/App/Controller/Admin.pm | |
parent | ba16e095260993d814e6fb603a7d405d08a4ecb9 (diff) |
Remove needless category mappings.
Both filter categories and new report category lists went through mappings
to different data structures, which doesn't seem to be needed.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Admin.pm')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Admin.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Admin.pm b/perllib/FixMyStreet/App/Controller/Admin.pm index a923a3407..535a8d08e 100644 --- a/perllib/FixMyStreet/App/Controller/Admin.pm +++ b/perllib/FixMyStreet/App/Controller/Admin.pm @@ -1088,7 +1088,7 @@ sub categories_for_point : Private { # Remove the "Pick a category" option shift @{$c->stash->{category_options}} if @{$c->stash->{category_options}}; - $c->stash->{categories_hash} = { map { $_->{name} => 1 } @{$c->stash->{category_options}} }; + $c->stash->{categories_hash} = { map { $_->category => 1 } @{$c->stash->{category_options}} }; } sub templates : Path('templates') : Args(0) { |