aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/SendReport/Zurich.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2013-01-18 11:53:17 +0000
committerMatthew Somerville <matthew@mysociety.org>2013-01-18 11:53:17 +0000
commit2bf6d88fc6dfb5f51545f8911b28777bfd6c7230 (patch)
tree5c777f3ee2d43e88a5fd586ad9aeeae396f7e8cb /perllib/FixMyStreet/SendReport/Zurich.pm
parent9c0f553738bb904658ef588e0f3e3454b3f62a45 (diff)
If personal details tickbox ticked, use template that includes them.
Diffstat (limited to 'perllib/FixMyStreet/SendReport/Zurich.pm')
-rw-r--r--perllib/FixMyStreet/SendReport/Zurich.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/SendReport/Zurich.pm b/perllib/FixMyStreet/SendReport/Zurich.pm
index ca9e6f33e..d700dcb15 100644
--- a/perllib/FixMyStreet/SendReport/Zurich.pm
+++ b/perllib/FixMyStreet/SendReport/Zurich.pm
@@ -39,6 +39,9 @@ sub get_template {
$template = 'submit-feedback-pending.txt';
} elsif ( $row->state eq 'closed' ) {
$template = 'submit-external.txt';
+ if ( $row->extra->{third_personal} ) {
+ $template = 'submit-external-personal.txt';
+ }
}
my $template_path = FixMyStreet->path_to( "templates", "email", "zurich", $template )->stringify;