aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2013-02-20 14:45:25 +0000
committerMatthew Somerville <matthew@mysociety.org>2013-02-20 14:45:25 +0000
commit51c9d4cec99491e09f4ed443f774b8ba3ccf0e3d (patch)
tree4e2370fce7b185516499968d6cf011a937cc1e99
parentdc828c04d2d2848a59200511753b260e7fc55b44 (diff)
Translate user details in Zurich external email.
-rw-r--r--perllib/FixMyStreet/DB/ResultSet/Problem.pm2
-rw-r--r--templates/email/zurich/submit-external-personal.txt6
2 files changed, 4 insertions, 4 deletions
diff --git a/perllib/FixMyStreet/DB/ResultSet/Problem.pm b/perllib/FixMyStreet/DB/ResultSet/Problem.pm
index 078c78d0e..fe12f95e9 100644
--- a/perllib/FixMyStreet/DB/ResultSet/Problem.pm
+++ b/perllib/FixMyStreet/DB/ResultSet/Problem.pm
@@ -255,7 +255,7 @@ sub send_reports {
# Template variables for the email
my $email_base_url = $cobrand->base_url_for_report($row);
my %h = map { $_ => $row->$_ } qw/id title detail name category latitude longitude used_map/;
- map { $h{$_} = $row->user->$_ } qw/email phone/;
+ map { $h{$_} = $row->user->$_ || '' } qw/email phone/;
$h{confirmed} = DateTime::Format::Pg->format_datetime( $row->confirmed->truncate (to => 'second' ) )
if $row->confirmed;
diff --git a/templates/email/zurich/submit-external-personal.txt b/templates/email/zurich/submit-external-personal.txt
index 027afd4bf..698c5297a 100644
--- a/templates/email/zurich/submit-external-personal.txt
+++ b/templates/email/zurich/submit-external-personal.txt
@@ -6,8 +6,8 @@ Diese Meldung wurde Ihnen von der Stadt Zürich gesendet, da es Ihr Zuständigke
Öffentliche URL: <?=$values['url']?>
-Reporter name: <?=$values['name']?>
+Name des Meldenden: <?=$values['name']?>
-Reporter email: <?=$values['email']?>
+Email des Meldenden: <?=$values['email']?>
-<?=$values['phone_line']?>
+Telefonnummer des Meldenden: <?=$values['phone']?>