aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perllib/FixMyStreet/App/Controller/Admin.pm7
-rw-r--r--templates/web/zurich/admin/report_edit.html4
2 files changed, 8 insertions, 3 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Admin.pm b/perllib/FixMyStreet/App/Controller/Admin.pm
index a0faba47a..8ed135e6d 100644
--- a/perllib/FixMyStreet/App/Controller/Admin.pm
+++ b/perllib/FixMyStreet/App/Controller/Admin.pm
@@ -692,11 +692,12 @@ sub report_edit : Path('report_edit') : Args(1) {
$problem->extra( { %$extra } );
}
- # Zurich have photos being published or not; can't just check as with
- # e.g. internal_notes as it's a checkbox and won't be set if it's not
- # ticked
+ # Zurich have photos being published or not, and third parties getting
+ # personal data; can't just check as with e.g. internal_notes as it's a
+ # checkbox and won't be set if it's not ticked
if ($c->cobrand->moniker eq 'zurich') {
$extra->{publish_photo} = $c->req->params->{publish_photo} || 0;
+ $extra->{third_personal} = $c->req->params->{third_personal} || 0;
$problem->extra( { %$extra } );
}
diff --git a/templates/web/zurich/admin/report_edit.html b/templates/web/zurich/admin/report_edit.html
index 70079b119..40d408e83 100644
--- a/templates/web/zurich/admin/report_edit.html
+++ b/templates/web/zurich/admin/report_edit.html
@@ -7,6 +7,7 @@
<input type="hidden" name="token" value="[% token %]" >
<input type="hidden" name="submit" value="1" >
+<!--
[% IF NOT state OR state.0 == 'unconfirmed' %]
<p>[% loc('Body:') %]
<select name="body_external">
@@ -25,6 +26,7 @@
</select>
[% END %]
+-->
<ul>
[%- cobrand_data = problem.cobrand_data %]
@@ -40,6 +42,8 @@
<option value="[% body.id %]"[% IF body.id == problem.bodies_str%] selected[% END %]>[% body.name %]</option>
[% END %]
</select>
+ <input type="checkbox" name="third_personal" id="third_personal" value="1"[% ' checked' IF problem.extra.third_personal %]>
+ <label for="third_personal" class="inline">Include reporter personal details</label>
</li>
<li>[% loc('State:') %] <select name="state" id="state">