aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/My.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2016-10-13 19:23:46 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2016-10-13 19:23:46 +0100
commitfbe159d78ce133cadf79645660f49ddf7bfbc569 (patch)
tree092cd7bbd7b39f141560e0c13580d157cb27f7df /perllib/FixMyStreet/App/Controller/My.pm
parent8ab9812e6cd5f686f7ab4d9a9859e8be4456ccd0 (diff)
parenta5ef113e2cc3105da41cf5449b505db6fa336c59 (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.pm8
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, {