aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Admin.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2015-10-23 14:58:30 +0100
committerMatthew Somerville <matthew@mysociety.org>2015-10-23 14:58:30 +0100
commitda52879e407ffa683567e349c744f30171065a76 (patch)
tree4d02bc41b672de596903d8224894bb10745c7f12 /perllib/FixMyStreet/App/Controller/Admin.pm
parent239148e9ba1e55ce205f4ec134c0baab104b0208 (diff)
parentaf7a602d2c83bdf0371ae253f5ba3f80cece077d (diff)
Merge branch '1251-json-status-page'
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Admin.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Admin.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Admin.pm b/perllib/FixMyStreet/App/Controller/Admin.pm
index 39d6ff72f..a61032988 100644
--- a/perllib/FixMyStreet/App/Controller/Admin.pm
+++ b/perllib/FixMyStreet/App/Controller/Admin.pm
@@ -129,7 +129,9 @@ sub index : Path : Args(0) {
: _('n/a');
$c->stash->{questionnaires} = \%questionnaire_counts;
- $c->stash->{categories} = $c->cobrand->problems->categories_summary();
+ if ($c->get_param('show_categories')) {
+ $c->stash->{categories} = $c->cobrand->problems->categories_summary();
+ }
$c->stash->{total_bodies} = $c->model('DB::Body')->count();