From 0ea7e84beeea32c51b3592fcacd5824552dba15d Mon Sep 17 00:00:00 2001 From: Dave Arter Date: Mon, 24 Jun 2019 17:28:41 +0100 Subject: Indicate in report new AJAX if a category is private --- perllib/FixMyStreet/App/Controller/Report/New.pm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'perllib/FixMyStreet/App/Controller/Report') diff --git a/perllib/FixMyStreet/App/Controller/Report/New.pm b/perllib/FixMyStreet/App/Controller/Report/New.pm index 7c7ebd202..00cd91d03 100644 --- a/perllib/FixMyStreet/App/Controller/Report/New.pm +++ b/perllib/FixMyStreet/App/Controller/Report/New.pm @@ -274,8 +274,10 @@ sub by_category_ajax_data : Private { $category ? (list_of_names => $list_of_names) : (), }; + my $non_public = $c->stash->{non_public_categories}->{$category}; my $body = { bodies => $list_of_names, + $non_public ? (non_public => JSON->true) : (), }; if ($generate) { -- cgit v1.2.3