aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2011-05-18 12:44:34 +0100
committerStruan Donald <struan@exo.org.uk>2011-05-18 12:44:34 +0100
commit7acea67840e3b289f03ab728a257510671ee9c8d (patch)
treecfbd33e5d356d0135b3968349e30be5ec63f3810 /perllib/FixMyStreet/App/Controller
parentc3b33bfac3b15c869fc24aacc403e148b2079edc (diff)
don't display unconfirmed updates
Diffstat (limited to 'perllib/FixMyStreet/App/Controller')
-rw-r--r--perllib/FixMyStreet/App/Controller/Report.pm4
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',
}
);