diff options
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Dashboard.pm | 2 | ||||
-rw-r--r-- | t/app/controller/dashboard.t | 2 |
2 files changed, 2 insertions, 2 deletions
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 = { diff --git a/t/app/controller/dashboard.t b/t/app/controller/dashboard.t index b477c03bf..7033fa02c 100644 --- a/t/app/controller/dashboard.t +++ b/t/app/controller/dashboard.t @@ -591,7 +591,7 @@ sub make_problem { problem => $p, user_id => $p_user->id, state => 'confirmed', - problem_state => $args->{state}, + problem_state => $args->{state} =~ /^fixed - user|fixed$/ ? undef : $args->{state}, confirmed => $args->{mark_dt}, text => 'an update', mark_fixed => $args->{state} =~ /fixed/ ? 1 : 0, |