From f4e2d66889a825d13ad4af6e8ad9168ceb7024b7 Mon Sep 17 00:00:00 2001 From: Struan Donald Date: Thu, 24 May 2012 15:32:01 +0100 Subject: problem_status is only set for council user updates so check for mark_fixed and null problem_status to identify user - fixed updates --- perllib/FixMyStreet/App/Controller/Dashboard.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perllib/FixMyStreet/App/Controller/Dashboard.pm') diff --git a/perllib/FixMyStreet/App/Controller/Dashboard.pm b/perllib/FixMyStreet/App/Controller/Dashboard.pm index 0fd6cbb98..e4266dc64 100644 --- a/perllib/FixMyStreet/App/Controller/Dashboard.pm +++ b/perllib/FixMyStreet/App/Controller/Dashboard.pm @@ -208,7 +208,7 @@ sub updates_search : Private { } $counts{fixed_user} = $c->model('DB::Comment')->search( - { %$params, mark_fixed => 1, 'problem_state' => { IN => [ 'fixed - user', 'fixed' ] } }, { join => 'problem' } + { %$params, mark_fixed => 1, problem_state => undef }, { join => 'problem' } )->count; $params = { -- cgit v1.2.3