aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet
diff options
context:
space:
mode:
Diffstat (limited to 'perllib/FixMyStreet')
-rw-r--r--perllib/FixMyStreet/Cobrand/Bexley.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Bexley.pm b/perllib/FixMyStreet/Cobrand/Bexley.pm
index 62f0bbfb6..95c9aac84 100644
--- a/perllib/FixMyStreet/Cobrand/Bexley.pm
+++ b/perllib/FixMyStreet/Cobrand/Bexley.pm
@@ -158,6 +158,12 @@ sub open311_post_send {
my @flooding = split /,/, $emails->{flooding};
push @to, [ $_, 'FixMyStreet Bexley Flooding' ] for @flooding;
}
+ if ($contact->email =~ /^Uniform/ && $emails->{eh}) {
+ my @eh = split ',', $emails->{eh};
+ push @to, [ $_, 'FixMyStreet Bexley EH' ] for @eh;
+ $row->push_extra_fields({ name => 'uniform_id', description => 'Uniform ID', value => $row->external_id });
+ }
+
return unless @to;
my $sender = FixMyStreet::SendReport::Email->new( to => \@to );