diff options
author | Struan Donald <struan@exo.org.uk> | 2011-05-17 18:13:48 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2011-05-17 18:13:48 +0100 |
commit | 9c9d6f649c962bc5902809e3c652d757a6849525 (patch) | |
tree | 8cd05b3940548bcc14beebc76978acddeadb0c49 /perllib/FixMyStreet/App/Controller/Report.pm | |
parent | 8d305e8b33cee0b2e1653514b498741f85938812 (diff) |
display problem updates
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Report.pm')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Report.pm | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report.pm b/perllib/FixMyStreet/App/Controller/Report.pm index c56634f3f..f02b2cbe3 100644 --- a/perllib/FixMyStreet/App/Controller/Report.pm +++ b/perllib/FixMyStreet/App/Controller/Report.pm @@ -154,6 +154,26 @@ sub load_problem_or_display_error : Private { $c->stash->{problem} = $problem; + my $updates = $c->model('DB::Comment')->search( + { problem_id => $problem->id }, #, state => 'confirmed' }, + { + select => [ + 'id', 'name', 'text', + 'mark_fixed', + 'mark_open', + 'photo', + 'cobrand', + { + extract => 'epoch from confirmed', + -as => 'confirmed', + } + ], + order_by => 'confirmed' + } + ); + + $c->stash->{updates} = $updates; + return 1; } |