diff options
author | Struan Donald <struan@exo.org.uk> | 2011-06-16 16:46:04 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2011-06-16 16:46:04 +0100 |
commit | c35ef08e4f6f51874d1ce46dce3b4895dca6fe54 (patch) | |
tree | 0f645f0747be9acaa7254e8640e904199ef82742 /perllib/FixMyStreet/DB/ResultSet/Nearby.pm | |
parent | 08bda4c3a6ef4e55bce01a3fa004021679b141f5 (diff) |
stop using hard coded names for fixed/visible states ( work in progress )
Diffstat (limited to 'perllib/FixMyStreet/DB/ResultSet/Nearby.pm')
-rw-r--r-- | perllib/FixMyStreet/DB/ResultSet/Nearby.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/DB/ResultSet/Nearby.pm b/perllib/FixMyStreet/DB/ResultSet/Nearby.pm index 3b3a3d90b..04089096e 100644 --- a/perllib/FixMyStreet/DB/ResultSet/Nearby.pm +++ b/perllib/FixMyStreet/DB/ResultSet/Nearby.pm @@ -8,7 +8,7 @@ sub nearby { my ( $rs, $c, $dist, $ids, $limit, $mid_lat, $mid_lon, $interval ) = @_; my $params = { - state => [ 'confirmed', 'fixed' ], + state => [ FixMyStreet::DB::Result::Problem::visible_states() ], }; $params->{'current_timestamp-lastupdate'} = { '<', \"'$interval'::interval" } if $interval; |