aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Mytton <chrismytton@gmail.com>2019-12-19 13:05:35 +0000
committerChris Mytton <chrism@mysociety.org>2020-02-20 14:01:10 +0000
commit91646c4c242764462ced2e693c2955184cbc319f (patch)
tree2642eb895e575d004311fbb1ac61b67eb4f78ba7
parent8249148d457523c6720985391c5311e74669635f (diff)
[Peterborough] Don't send private_land info to open311
This field is shown in the FMS interface, but doesn't need to be sent to open311, it's just to check that the user isn't reporting problems on private land.
-rw-r--r--perllib/FixMyStreet/Cobrand/Peterborough.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Peterborough.pm b/perllib/FixMyStreet/Cobrand/Peterborough.pm
index 32386a470..107534674 100644
--- a/perllib/FixMyStreet/Cobrand/Peterborough.pm
+++ b/perllib/FixMyStreet/Cobrand/Peterborough.pm
@@ -43,9 +43,10 @@ sub admin_user_domain { "peterborough.gov.uk" }
around 'open311_config' => sub {
my ($orig, $self, $row, $h, $params) = @_;
- # remove the emergency category which is informational only
+ # remove categories which are informational only
my $extra = $row->get_extra_fields;
@$extra = grep { $_->{name} ne 'emergency' } @$extra;
+ @$extra = grep { $_->{name} ne 'private_land' } @$extra;
$row->set_extra_fields(@$extra);
$self->$orig($row, $h, $params);