aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/DB/ResultSet/Nearby.pm
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2012-09-03 17:58:54 +0100
committerStruan Donald <struan@exo.org.uk>2012-09-03 17:58:54 +0100
commit5b90af6e79940d8de734d06d20ed82c52a50b56e (patch)
treebe556122e88f1c87e0d4c7e6e7c4db676722131a /perllib/FixMyStreet/DB/ResultSet/Nearby.pm
parent41e11f0968be098f47f82986f255e037087624bb (diff)
make around test for non public reports work, and do not display non
public reports on around page
Diffstat (limited to 'perllib/FixMyStreet/DB/ResultSet/Nearby.pm')
-rw-r--r--perllib/FixMyStreet/DB/ResultSet/Nearby.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/DB/ResultSet/Nearby.pm b/perllib/FixMyStreet/DB/ResultSet/Nearby.pm
index 83fc85a88..191223572 100644
--- a/perllib/FixMyStreet/DB/ResultSet/Nearby.pm
+++ b/perllib/FixMyStreet/DB/ResultSet/Nearby.pm
@@ -8,6 +8,7 @@ sub nearby {
my ( $rs, $c, $dist, $ids, $limit, $mid_lat, $mid_lon, $interval ) = @_;
my $params = {
+ non_public => 0,
state => [ FixMyStreet::DB::Result::Problem::visible_states() ],
};
$params->{'current_timestamp-lastupdate'} = { '<', \"'$interval'::interval" }