diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-01-04 18:08:57 +0000 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-01-04 18:17:19 +0000 |
commit | b06b899b1c815022a1757d6f256fea8a489ad513 (patch) | |
tree | d97fc6f81586fde64aedc7c526ca1e2ba160740c /perllib/FixMyStreet/App/Controller/Around.pm | |
parent | 3af2658153e35599c50a51c3a85a05e0e365e071 (diff) |
Fix bug specifying category in URL on /around.
The list of existing categories wasn't being checked correctly.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Around.pm')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Around.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Around.pm b/perllib/FixMyStreet/App/Controller/Around.pm index 7cef7ccaa..e4932ecd5 100644 --- a/perllib/FixMyStreet/App/Controller/Around.pm +++ b/perllib/FixMyStreet/App/Controller/Around.pm @@ -240,7 +240,7 @@ sub check_and_stash_category : Private { )->all; my @categories = map { { name => $_->category, value => $_->category_display } } @contacts; $c->stash->{filter_categories} = \@categories; - my %categories_mapped = map { $_ => 1 } @categories; + my %categories_mapped = map { $_->{name} => 1 } @categories; my $categories = [ $c->get_param_list('filter_category', 1) ]; my %valid_categories = map { $_ => 1 } grep { $_ && $categories_mapped{$_} } @$categories; |