aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Around.pm
diff options
context:
space:
mode:
authorSteven Day <steve@mysociety.org>2015-06-29 11:54:18 +0100
committerSteven Day <steve@mysociety.org>2015-06-29 12:43:03 +0100
commit01e8f49c0e4caf966e85da05264b7e839fcf0493 (patch)
tree1fd9b980b49c32fc8937194437886ebbb1dfa18e /perllib/FixMyStreet/App/Controller/Around.pm
parent24aca46991269270e741033b2fa9464a515f75cb (diff)
Simplify default status filter for map pins
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Around.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Around.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Around.pm b/perllib/FixMyStreet/App/Controller/Around.pm
index 341e26cca..7d382c228 100644
--- a/perllib/FixMyStreet/App/Controller/Around.pm
+++ b/perllib/FixMyStreet/App/Controller/Around.pm
@@ -165,10 +165,10 @@ sub display_location : Private {
$c->stash->{all_pins} = $all_pins;
my $interval = $all_pins ? undef : $c->cobrand->on_map_default_max_pin_age;
- my $states = $c->cobrand->on_map_default_states;
+ my $states;
$c->stash->{filter_status} = $c->cobrand->on_map_default_status;
- my $status = $c->req->param('status') || '';
- if ( !defined $states || $status eq 'all' ) {
+ my $status = $c->req->param('status') || $c->cobrand->on_map_default_status;
+ if ( $status eq 'all' ) {
$states = FixMyStreet::DB::Result::Problem->visible_states();
$c->stash->{filter_status} = 'all';
} elsif ( $status eq 'open' ) {