diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-08-15 18:03:10 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-11-06 12:25:34 +0000 |
commit | 917be7924e23fd4e0168927f16fa5d6e64ca4508 (patch) | |
tree | 3cdf0924c629df0dab3f6aa592ad556f7999ec4a /perllib/FixMyStreet/DB/ResultSet/Problem.pm | |
parent | 660631a3ff063e6378c9838f40c1d9bfa8dcfd43 (diff) |
Remove Show all pins link and on_map_list_limit.
/around will now show all reports all the time, but we are about to
introduce pagination to stop that.
Diffstat (limited to 'perllib/FixMyStreet/DB/ResultSet/Problem.pm')
-rw-r--r-- | perllib/FixMyStreet/DB/ResultSet/Problem.pm | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/perllib/FixMyStreet/DB/ResultSet/Problem.pm b/perllib/FixMyStreet/DB/ResultSet/Problem.pm index f1ed50721..5cbf4e8f0 100644 --- a/perllib/FixMyStreet/DB/ResultSet/Problem.pm +++ b/perllib/FixMyStreet/DB/ResultSet/Problem.pm @@ -140,11 +140,10 @@ sub _recent { # Problems around a location sub around_map { - my ( $rs, $limit, %p) = @_; + my ( $rs, %p) = @_; my $attr = { order_by => $p{order}, }; - $attr->{rows} = $limit if $limit; unless ( $p{states} ) { $p{states} = FixMyStreet::DB::Result::Problem->visible_states(); @@ -156,8 +155,6 @@ sub around_map { latitude => { '>=', $p{min_lat}, '<', $p{max_lat} }, longitude => { '>=', $p{min_lon}, '<', $p{max_lon} }, }; - $q->{'current_timestamp - lastupdate'} = { '<', \"'$p{interval}'::interval" } - if $p{interval}; $q->{category} = $p{categories} if $p{categories} && @{$p{categories}}; my @problems = mySociety::Locale::in_gb_locale { $rs->search( $q, $attr )->include_comment_counts->all }; |