aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2019-12-13 12:40:52 +0000
committerMatthew Somerville <matthew@mysociety.org>2019-12-13 12:40:52 +0000
commit5357f62b8ac94cf691605d3b66cbf0645295f9dd (patch)
treed1e188806edab38c2c775cb3f9cc5b8ddbb40128
parent9a46a3c2b32d27ff3c43170208dde67f1062b319 (diff)
parent2c56266c6fd4747b4172dd7727d090ad452b7ded (diff)
Merge branches 'bexley-uniform-nsgref' and 'bexley-flooding'
-rw-r--r--perllib/FixMyStreet/Cobrand/Bexley.pm10
1 files changed, 10 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Bexley.pm b/perllib/FixMyStreet/Cobrand/Bexley.pm
index b1d300783..1b960f206 100644
--- a/perllib/FixMyStreet/Cobrand/Bexley.pm
+++ b/perllib/FixMyStreet/Cobrand/Bexley.pm
@@ -128,6 +128,12 @@ sub open311_post_send {
);
my %lighting = map { $_ => 1 } @lighting;
+ my @flooding = (
+ 'Flooding in the road',
+ 'Blocked rainwater gulleys',
+ );
+ my %flooding = map { $_ => 1 } @flooding;
+
my $emails = $self->feature('open311_email') || return;
my $dangerous = $row->get_extra_field_value('dangerous') || '';
my $reportType = $row->get_extra_field_value('reportType') || '';
@@ -148,6 +154,10 @@ sub open311_post_send {
my @lighting = split /,/, $emails->{lighting};
push @to, [ $_, 'FixMyStreet Bexley Street Lighting' ] for @lighting;
}
+ if ($flooding{$row->category} && $emails->{flooding}) {
+ my @flooding = split /,/, $emails->{flooding};
+ push @to, [ $_, 'FixMyStreet Bexley Flooding' ] for @flooding;
+ }
return unless @to;
my $sender = FixMyStreet::SendReport::Email->new( to => \@to );