aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2013-01-17 11:22:41 +0000
committerMatthew Somerville <matthew@mysociety.org>2013-01-17 11:22:41 +0000
commita57479a0209fa8c8dd8c906c938c28d2ddf162d9 (patch)
treef55e8542ad760d3ffdcebf41a45bd62c93f0c022
parent06dc017f266bdca73fc6cea7a603082eeea0bd8c (diff)
Don't do login links for alert update emails for Zurich.
-rw-r--r--perllib/FixMyStreet/DB/ResultSet/AlertType.pm3
-rw-r--r--templates/email/zurich/alert-update.txt11
2 files changed, 13 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/DB/ResultSet/AlertType.pm b/perllib/FixMyStreet/DB/ResultSet/AlertType.pm
index a502a4a25..5b6b33d94 100644
--- a/perllib/FixMyStreet/DB/ResultSet/AlertType.pm
+++ b/perllib/FixMyStreet/DB/ResultSet/AlertType.pm
@@ -94,8 +94,9 @@ sub email_alerts ($) {
}
# this is currently only for new_updates
if ($row->{item_text}) {
- if ( $row->{alert_user_id} == $row->{user_id} ) {
+ if ( $cobrand->moniker ne 'zurich' && $row->{alert_user_id} == $row->{user_id} ) {
# This is an alert to the same user who made the report - make this a login link
+ # Don't bother with Zurich which has no accounts
my $user = FixMyStreet::App->model('DB::User')->find( {
id => $row->{alert_user_id}
} );
diff --git a/templates/email/zurich/alert-update.txt b/templates/email/zurich/alert-update.txt
new file mode 100644
index 000000000..3f8da5f66
--- /dev/null
+++ b/templates/email/zurich/alert-update.txt
@@ -0,0 +1,11 @@
+Subject: New update on report - '<?=$values['title']?>'
+
+The following update has been left on this report:
+
+<?=$values['data']?>
+
+To view this report on the site, please visit the following URL:
+ <?=$values['problem_url']?>
+
+<?=$values['signature']?>
+