aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Report/New.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2018-02-13 11:41:49 +0000
committerMatthew Somerville <matthew-github@dracos.co.uk>2018-02-13 11:41:49 +0000
commitec3a443ac4c1d7e5caac339c1d48d9900e974fe3 (patch)
tree1f1972f1bb891b93c898be015328d03fbf359058 /perllib/FixMyStreet/App/Controller/Report/New.pm
parent6e2da95bc6a758c0cf070b9ddd51acc769f7acf1 (diff)
parent437e023929102f8d4fdd48d063abb0c8ae5af920 (diff)
Merge branch 'issues/forcouncils/276-staff-only-reports'
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Report/New.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Report/New.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report/New.pm b/perllib/FixMyStreet/App/Controller/Report/New.pm
index f9e07dd41..888110429 100644
--- a/perllib/FixMyStreet/App/Controller/Report/New.pm
+++ b/perllib/FixMyStreet/App/Controller/Report/New.pm
@@ -870,6 +870,7 @@ sub process_report : Private {
'subcategory', #
'partial', #
'service', #
+ 'non_public',
);
# load the report
@@ -897,6 +898,8 @@ sub process_report : Private {
$report->anonymous( $params{may_show_name} ? 0 : 1 );
}
+ $report->non_public($params{non_public} ? 1 : 0);
+
# clean up text before setting
$report->title( Utils::cleanup_text( $params{title} ) );