diff options
author | Struan Donald <struan@exo.org.uk> | 2011-05-18 12:44:34 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2011-05-18 12:44:34 +0100 |
commit | 7acea67840e3b289f03ab728a257510671ee9c8d (patch) | |
tree | cfbd33e5d356d0135b3968349e30be5ec63f3810 /perllib/FixMyStreet/App/Controller | |
parent | c3b33bfac3b15c869fc24aacc403e148b2079edc (diff) |
don't display unconfirmed updates
Diffstat (limited to 'perllib/FixMyStreet/App/Controller')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Report.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report.pm b/perllib/FixMyStreet/App/Controller/Report.pm index decda1b6c..1e1c6c974 100644 --- a/perllib/FixMyStreet/App/Controller/Report.pm +++ b/perllib/FixMyStreet/App/Controller/Report.pm @@ -155,7 +155,7 @@ sub load_problem_or_display_error : Private { $c->stash->{problem} = $problem; my $updates = $c->model('DB::Comment')->search( - { problem_id => $problem->id }, #, state => 'confirmed' }, + { problem_id => $problem->id, state => 'confirmed' }, { select => [ 'id', 'name', 'text', @@ -170,7 +170,7 @@ sub load_problem_or_display_error : Private { -as => 'confirmed', } ], - order_by => 'confirmed' + order_by => 'confirmed', } ); |