diff options
author | Matthew Somerville <matthew@mysociety.org> | 2020-01-24 16:12:17 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2020-01-24 16:12:35 +0000 |
commit | 75c22aec72a0b7d767ef9eb18f9c8fbd1b0d29f2 (patch) | |
tree | 9ae617dee7fc368acd79b15585fbc05c86cc5443 /perllib/FixMyStreet | |
parent | 058a1b47ceaa962625c165afdebd92316e73b13f (diff) |
[Bexley] Out-of-hours email for all highways.
The changes in 27fe9940 to send more P1 emails meant the out-of-hours
email wasn't being correct sent when it should have been.
Diffstat (limited to 'perllib/FixMyStreet')
-rw-r--r-- | perllib/FixMyStreet/Cobrand/Bexley.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Bexley.pm b/perllib/FixMyStreet/Cobrand/Bexley.pm index bbef4154b..5fc7b37a0 100644 --- a/perllib/FixMyStreet/Cobrand/Bexley.pm +++ b/perllib/FixMyStreet/Cobrand/Bexley.pm @@ -167,8 +167,10 @@ sub open311_post_send { my $reportType = $row->get_extra_field_value('reportType') || ''; $p1_email = 1 if $reportType eq 'Cover missing'; $p1_email = 1 if $dangerous eq 'Yes'; + $outofhours_email = 1 if $dangerous eq 'Yes'; } elsif ($row->category eq 'Damage to kerb' || $row->category eq 'Damaged road' || $row->category eq 'Damaged pavement') { $p1_email = 1; + $outofhours_email = 1 if $dangerous eq 'Yes'; } elsif (!$lighting{$row->category}) { $p1_email = 1 if $dangerous eq 'Yes'; $outofhours_email = 1 if $dangerous eq 'Yes'; |