aboutsummaryrefslogtreecommitdiffstats
path: root/perllib
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2020-04-07 11:26:24 +0100
committerMatthew Somerville <matthew@mysociety.org>2020-04-07 11:43:54 +0100
commite829a7bc83c886de76cd3f03ed6d65f067c45ae4 (patch)
tree08b469dfc8d2eff2acde27f77ca1858c6ff37b1a /perllib
parentcd392865eb87d8eef5f9c57e64d00acc7a9bbac1 (diff)
[Bexley] Treat any oil spillage report as P1.
Diffstat (limited to 'perllib')
-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 bfdb3c74b..481926e72 100644
--- a/perllib/FixMyStreet/Cobrand/Bexley.pm
+++ b/perllib/FixMyStreet/Cobrand/Bexley.pm
@@ -172,6 +172,12 @@ sub open311_post_send {
$p1_email = 1;
$outofhours_email = 1;
}
+ } elsif ($row->category eq 'Street cleaning and litter') {
+ my $reportType = $row->get_extra_field_value('reportType') || '';
+ if ($reportType eq 'Oil spillage' || $dangerous eq 'Yes') {
+ $p1_email = 1;
+ $outofhours_email = 1;
+ }
} elsif ($row->category eq 'Damage to kerb' || $row->category eq 'Damaged road' || $row->category eq 'Damaged pavement') {
$p1_email = 1;
$outofhours_email = 1;