diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-10-13 19:23:46 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-10-13 19:23:46 +0100 |
commit | fbe159d78ce133cadf79645660f49ddf7bfbc569 (patch) | |
tree | 092cd7bbd7b39f141560e0c13580d157cb27f7df /perllib/FixMyStreet/App/Controller/My.pm | |
parent | 8ab9812e6cd5f686f7ab4d9a9859e8be4456ccd0 (diff) | |
parent | a5ef113e2cc3105da41cf5449b505db6fa336c59 (diff) |
Merge branch 'issues/forcouncils/95-multi-select-list-filters'
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/My.pm')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/My.pm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/perllib/FixMyStreet/App/Controller/My.pm b/perllib/FixMyStreet/App/Controller/My.pm index b7fabcf4c..573c41446 100644 --- a/perllib/FixMyStreet/App/Controller/My.pm +++ b/perllib/FixMyStreet/App/Controller/My.pm @@ -63,10 +63,10 @@ sub get_problems : Private { state => [ keys %$states ], }; - my $category = $c->get_param('filter_category'); - if ( $category ) { - $params->{category} = $category; - $c->stash->{filter_category} = $category; + my $categories = [ $c->get_param_list('filter_category', 1) ]; + if ( @$categories ) { + $params->{category} = $categories; + $c->stash->{filter_category} = $categories; } my $rs = $c->stash->{problems_rs}->search( $params, { |