aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2018-07-03 16:34:39 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2018-07-03 16:53:59 +0100
commit6c9b1aed02d891434f02d4746e8556c3560efbc5 (patch)
tree021876bc0bfc09b5b2d087550efd2d7a6a6611be
parent4b20c003ed43ef329c5c126a767f5626f3489d79 (diff)
[fixmystreet.com] Default to open reports only.
-rw-r--r--perllib/FixMyStreet/Cobrand/FixMyStreet.pm2
-rw-r--r--t/app/controller/around.t2
2 files changed, 3 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/Cobrand/FixMyStreet.pm b/perllib/FixMyStreet/Cobrand/FixMyStreet.pm
index 6c826ec01..1b58b7cc8 100644
--- a/perllib/FixMyStreet/Cobrand/FixMyStreet.pm
+++ b/perllib/FixMyStreet/Cobrand/FixMyStreet.pm
@@ -8,6 +8,8 @@ use mySociety::Random;
use constant COUNCIL_ID_BROMLEY => 2482;
+sub on_map_default_status { return 'open'; }
+
# Special extra
sub path_to_web_templates {
my $self = shift;
diff --git a/t/app/controller/around.t b/t/app/controller/around.t
index dc755a67f..2d67dc6ac 100644
--- a/t/app/controller/around.t
+++ b/t/app/controller/around.t
@@ -257,7 +257,7 @@ subtest 'check show old reports checkbox shown on around page' => sub {
my $problems = FixMyStreet::App->model('DB::Problem')->to_body( $body->id );
$problems->first->update( { confirmed => \"current_timestamp-'7 months'::interval" } );
- $mech->get_ok( '/around?pc=OX20+1SZ' );
+ $mech->get_ok( '/around?pc=OX20+1SZ&status=all' );
$mech->content_lacks('id="show_old_reports_wrapper" class="report-list-filters hidden"');
$mech->content_contains('id="show_old_reports_wrapper" class="report-list-filters"');