diff options
author | Matthew Somerville <matthew@mysociety.org> | 2016-05-20 14:33:37 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2016-05-20 14:33:37 +0100 |
commit | e039a7e191d1f352b5d24bf5f965f2efeb5dc3de (patch) | |
tree | 13c8a9642cafb65de444287f46eb298fb0885011 /perllib/FixMyStreet/App/Controller/Status.pm | |
parent | 173abd37716cb49cde3d4836a9cf51a285bd3b79 (diff) |
Add search boxes to admin index page, move stats.
Move most index page statistics to their own pages.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Status.pm')
-rwxr-xr-x | perllib/FixMyStreet/App/Controller/Status.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Status.pm b/perllib/FixMyStreet/App/Controller/Status.pm index 931c7bd47..57c8f362e 100755 --- a/perllib/FixMyStreet/App/Controller/Status.pm +++ b/perllib/FixMyStreet/App/Controller/Status.pm @@ -58,7 +58,7 @@ sub index : Path : Args(0) { alerts_unconfirmed => $c->stash->{alerts}{0}, questionnaires_sent => $c->stash->{questionnaires}{total}, questionnaires_answered => $c->stash->{questionnaires}{1}, - bodies => $c->stash->{total_bodies}, + bodies => scalar @{$c->stash->{bodies}}, contacts => $c->stash->{contacts}{total}, }; my $body = JSON->new->utf8(1)->pretty->encode($data); |