aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Report.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2011-05-24 16:56:35 +0100
committerMatthew Somerville <matthew@mysociety.org>2011-05-24 16:56:35 +0100
commitea4b72706950650effcaf98d42cc50362b145dcd (patch)
tree5fbb1bcfa5f94b85685d04d4a00be575c62456e6 /perllib/FixMyStreet/App/Controller/Report.pm
parente1444cafa50b8857bb40049a921bd388684db03f (diff)
Create some _local functions to return the right DateTimes.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Report.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Report.pm17
1 files changed, 1 insertions, 16 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report.pm b/perllib/FixMyStreet/App/Controller/Report.pm
index 8fd94dfba..3a915b0a0 100644
--- a/perllib/FixMyStreet/App/Controller/Report.pm
+++ b/perllib/FixMyStreet/App/Controller/Report.pm
@@ -94,22 +94,7 @@ sub load_problem_or_display_error : Private {
my $updates = $c->model('DB::Comment')->search(
{ problem_id => $problem->id, state => 'confirmed' },
- {
- select => [
- 'id', 'name', 'text',
- 'user_id',
- 'anonymous',
- 'mark_fixed',
- 'mark_open',
- 'photo',
- 'cobrand',
- {
- extract => 'epoch from confirmed',
- -as => 'confirmed',
- }
- ],
- order_by => 'confirmed',
- }
+ { order_by => 'confirmed' }
);
$c->stash->{updates} = $updates;