aboutsummaryrefslogtreecommitdiffstats
path: root/perllib
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2020-04-07 11:25:50 +0100
committerMatthew Somerville <matthew@mysociety.org>2020-04-07 11:41:35 +0100
commitcd392865eb87d8eef5f9c57e64d00acc7a9bbac1 (patch)
treea75307ff2df5dd9d90e235ff7979e43af24c82e9 /perllib
parent7a6f6b5adbd33bd2b1a9aa4e51120801b270f7aa (diff)
[Bexley] Use other P1 email for Confirm reports.
Diffstat (limited to 'perllib')
-rw-r--r--perllib/FixMyStreet/Cobrand/Bexley.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Bexley.pm b/perllib/FixMyStreet/Cobrand/Bexley.pm
index 74a7b5032..bfdb3c74b 100644
--- a/perllib/FixMyStreet/Cobrand/Bexley.pm
+++ b/perllib/FixMyStreet/Cobrand/Bexley.pm
@@ -181,7 +181,8 @@ sub open311_post_send {
}
my @to;
- push @to, email_list($emails->{p1}, 'Bexley P1 email') if $p1_email;
+ my $p1_email_to_use = ($contact->email =~ /^Confirm/) ? $emails->{p1confirm} : $emails->{p1};
+ push @to, email_list($p1_email_to_use, 'Bexley P1 email') if $p1_email;
push @to, email_list($emails->{lighting}, 'FixMyStreet Bexley Street Lighting') if $lighting{$row->category};
push @to, email_list($emails->{flooding}, 'FixMyStreet Bexley Flooding') if $flooding{$row->category};
push @to, email_list($emails->{outofhours}, 'Bexley out of hours') if $outofhours_email && _is_out_of_hours();