diff options
author | Matthew Somerville <matthew@mysociety.org> | 2020-07-02 14:03:06 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2020-07-08 07:46:23 +0100 |
commit | 94d6eb5e670e29bfca4c81c18ec94e79b6cfafd7 (patch) | |
tree | e9713a08c0ad9e2f0a5ce09ab708c90e6b2a075f /perllib/FixMyStreet | |
parent | ee0d396b21045ddc8daf16a339f0eef8fe3c555f (diff) |
[Buckinghamshire] Handle HE flytipping reports.
We do not want to recategorise a report into the off-road
category if it is going to be sent to Highways England.
Diffstat (limited to 'perllib/FixMyStreet')
-rw-r--r-- | perllib/FixMyStreet/Cobrand/Buckinghamshire.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Buckinghamshire.pm b/perllib/FixMyStreet/Cobrand/Buckinghamshire.pm index 117725273..bd20d77ff 100644 --- a/perllib/FixMyStreet/Cobrand/Buckinghamshire.pm +++ b/perllib/FixMyStreet/Cobrand/Buckinghamshire.pm @@ -103,6 +103,7 @@ sub report_new_munge_before_insert { my ($self, $report) = @_; return unless $report->category eq 'Flytipping'; + return unless $self->{c}->stash->{report}->to_body_named('Buckinghamshire'); my $placement = $self->{c}->get_param('road-placement'); return unless $placement && $placement eq 'off-road'; |