aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Around.pm
diff options
context:
space:
mode:
authorDave Arter <davea@mysociety.org>2015-03-20 18:17:44 +0000
committerSteven Day <steve@mysociety.org>2015-06-29 12:43:02 +0100
commitd5b603e23557d255f7d930b30860b5c97951f631 (patch)
tree708d39b136da05e61c34513b9db5ea727c7b9452 /perllib/FixMyStreet/App/Controller/Around.pm
parenta76bd2ab4910aedd589b12ee857091d11b9db30b (diff)
Make load_and_group_problems respect status/category query params
This allows the /reports page to be filtered using the status/category dropdowns. This is implemented in a manner that means the t/c params will override status/category.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Around.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Around.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Around.pm b/perllib/FixMyStreet/App/Controller/Around.pm
index 9d86975c6..dbba93df2 100644
--- a/perllib/FixMyStreet/App/Controller/Around.pm
+++ b/perllib/FixMyStreet/App/Controller/Around.pm
@@ -167,7 +167,7 @@ sub display_location : Private {
my $states = $c->cobrand->on_map_default_states;
$c->stash->{filter_status} = $c->cobrand->on_map_default_status;
- my $status = $c->req->param('status');
+ my $status = $c->req->param('status') || '';
if ( !defined $states || $status eq 'all' ) {
$states = FixMyStreet::DB::Result::Problem->visible_states();
$c->stash->{filter_status} = 'all';