aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/DB/ResultSet/Problem.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2013-01-08 16:00:44 +0000
committerMatthew Somerville <matthew@mysociety.org>2013-01-08 16:16:02 +0000
commit4e8afc117eae6d315392fcd2d12bc38a8330bd14 (patch)
tree1924fa84607f32f7ac8751f60e4b27ae50fc0890 /perllib/FixMyStreet/DB/ResultSet/Problem.pm
parentee8d80ddaa0cf1cd82db8741b45692091fed5544 (diff)
Update database fetching to fetch needed data for previous commit.
Diffstat (limited to 'perllib/FixMyStreet/DB/ResultSet/Problem.pm')
-rw-r--r--perllib/FixMyStreet/DB/ResultSet/Problem.pm5
1 files changed, 0 insertions, 5 deletions
diff --git a/perllib/FixMyStreet/DB/ResultSet/Problem.pm b/perllib/FixMyStreet/DB/ResultSet/Problem.pm
index a694c45f2..6cecdea7e 100644
--- a/perllib/FixMyStreet/DB/ResultSet/Problem.pm
+++ b/perllib/FixMyStreet/DB/ResultSet/Problem.pm
@@ -93,7 +93,6 @@ sub _recent {
$query->{photo} = { '!=', undef } if $photos;
my $attrs = {
- columns => [ 'id', 'title', 'created', 'confirmed', 'state' ],
order_by => { -desc => 'coalesce(confirmed, created)' },
rows => $num,
};
@@ -136,10 +135,6 @@ sub around_map {
my ( $rs, $min_lat, $max_lat, $min_lon, $max_lon, $interval, $limit ) = @_;
my $attr = {
order_by => { -desc => 'created' },
- columns => [
- 'id', 'title', 'latitude', 'longitude', 'state', 'created', 'confirmed',
- { photo => 'photo is not null' },
- ],
};
$attr->{rows} = $limit if $limit;