diff options
author | Matthew Somerville <matthew@mysociety.org> | 2011-07-12 22:44:31 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2011-07-12 22:44:31 +0100 |
commit | db3e6eec80cc6365a7d63035d8df7949c7a4ccf7 (patch) | |
tree | 35c0e57adfbbfd8316ff5d39fc374bfc50c74e3c /perllib/FixMyStreet/App/Controller/Admin.pm | |
parent | 0d3e92f46ad367eced471bf5c5cde8428a320cd5 (diff) |
Don't use different count total.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Admin.pm')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Admin.pm | 3 |
1 files changed, 3 insertions, 0 deletions
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' }, { |