aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Cobrand/Bromley.pm
diff options
context:
space:
mode:
authorDave Arter <davea@mysociety.org>2019-11-06 11:46:56 +0000
committerDave Arter <davea@mysociety.org>2019-12-09 12:50:07 +0000
commit9efd2981c85b3fae48118071e12058413f46a73c (patch)
tree9377238eeac76bd7853a851db44521f3f8c674eb /perllib/FixMyStreet/Cobrand/Bromley.pm
parent64d09262cabeac85704067d03a358b86265ef27b (diff)
[TfL] Set safety critical flag on reports
Adds a cobrand feature that can mark entire categories or just specific answers to extra questions as safety critical. When reports are made in those categories or with those answers, marks the report as safety critical.
Diffstat (limited to 'perllib/FixMyStreet/Cobrand/Bromley.pm')
-rw-r--r--perllib/FixMyStreet/Cobrand/Bromley.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Bromley.pm b/perllib/FixMyStreet/Cobrand/Bromley.pm
index 29ff4393f..854f6da89 100644
--- a/perllib/FixMyStreet/Cobrand/Bromley.pm
+++ b/perllib/FixMyStreet/Cobrand/Bromley.pm
@@ -30,6 +30,9 @@ sub report_validation {
sub report_new_munge_before_insert {
my ($self, $report) = @_;
+ # Make sure TfL reports are marked safety critical
+ $self->SUPER::report_new_munge_before_insert($report);
+
$report->subcategory($report->get_extra_field_value('service_sub_code'));
}