From db3e6eec80cc6365a7d63035d8df7949c7a4ccf7 Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Tue, 12 Jul 2011 22:44:31 +0100 Subject: Don't use different count total. --- perllib/FixMyStreet/App/Controller/Admin.pm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'perllib/FixMyStreet/App/Controller/Admin.pm') diff --git a/perllib/FixMyStreet/App/Controller/Admin.pm b/perllib/FixMyStreet/App/Controller/Admin.pm index 8f54bffa2..fbd50a973 100644 --- a/perllib/FixMyStreet/App/Controller/Admin.pm +++ b/perllib/FixMyStreet/App/Controller/Admin.pm @@ -178,6 +178,9 @@ sub questionnaire : Path('questionnaire') : Args(0) { $questionnaire_counts{total} = $questionnaire_counts{0} + $questionnaire_counts{1}; $c->stash->{questionnaires} = \%questionnaire_counts; + $c->stash->{state_changes_count} = $c->model('DB::Questionnaire')->search( + { whenanswered => \'is not null' } + )->count; $c->stash->{state_changes} = $c->model('DB::Questionnaire')->search( { whenanswered => \'is not null' }, { -- cgit v1.2.3