diff options
Diffstat (limited to 'perllib/FixMyStreet/Map.pm')
-rw-r--r-- | perllib/FixMyStreet/Map.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/perllib/FixMyStreet/Map.pm b/perllib/FixMyStreet/Map.pm index 7db4a7e3d..7a9c8fa18 100644 --- a/perllib/FixMyStreet/Map.pm +++ b/perllib/FixMyStreet/Map.pm @@ -120,9 +120,9 @@ sub map_pins { my $category = $c->req->param('category'); # Filter reports by status, if present in query params - my $states = $c->cobrand->on_map_default_states; - my $status = $c->req->param('status') || ''; - if ( !defined $states || $status eq 'all' ) { + my $states; + my $status = $c->req->param('status') || $c->cobrand->on_map_default_status; + if ( $status eq 'all' ) { $states = FixMyStreet::DB::Result::Problem->visible_states(); } elsif ( $status eq 'open' ) { $states = FixMyStreet::DB::Result::Problem->open_states(); |