aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/DB
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 /perllib/FixMyStreet/DB
parent06dc017f266bdca73fc6cea7a603082eeea0bd8c (diff)
Don't do login links for alert update emails for Zurich.
Diffstat (limited to 'perllib/FixMyStreet/DB')
-rw-r--r--perllib/FixMyStreet/DB/ResultSet/AlertType.pm3
1 files changed, 2 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}
} );