diff options
Diffstat (limited to 'perllib')
-rw-r--r-- | perllib/FixMyStreet/Cobrand/Bristol.pm | 9 | ||||
-rw-r--r-- | perllib/FixMyStreet/Cobrand/Bromley.pm | 5 | ||||
-rw-r--r-- | perllib/FixMyStreet/Cobrand/Greenwich.pm | 9 |
3 files changed, 23 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Bristol.pm b/perllib/FixMyStreet/Cobrand/Bristol.pm index 0660acc79..fa2d3fabb 100644 --- a/perllib/FixMyStreet/Cobrand/Bristol.pm +++ b/perllib/FixMyStreet/Cobrand/Bristol.pm @@ -75,4 +75,13 @@ sub open311_config { $params->{always_send_email} = 1; } +sub open311_contact_meta_override { + my ($self, $service, $contact, $meta) = @_; + + my %server_set = (easting => 1, northing => 1); + foreach (@$meta) { + $_->{automated} = 'server_set' if $server_set{$_->{code}}; + } +} + 1; diff --git a/perllib/FixMyStreet/Cobrand/Bromley.pm b/perllib/FixMyStreet/Cobrand/Bromley.pm index f6a7be837..69aad01c8 100644 --- a/perllib/FixMyStreet/Cobrand/Bromley.pm +++ b/perllib/FixMyStreet/Cobrand/Bromley.pm @@ -245,6 +245,11 @@ sub open311_contact_meta_override { $contact->set_extra_metadata( id_field => 'service_request_id_ext'); + my %server_set = (easting => 1, northing => 1, service_request_id_ext => 1); + foreach (@$meta) { + $_->{automated} = 'server_set' if $server_set{$_->{code}}; + } + # Lights we want to store feature ID, PROW on all categories. push @$meta, { code => 'prow_reference', diff --git a/perllib/FixMyStreet/Cobrand/Greenwich.pm b/perllib/FixMyStreet/Cobrand/Greenwich.pm index 6ff30e83d..2aaa5d776 100644 --- a/perllib/FixMyStreet/Cobrand/Greenwich.pm +++ b/perllib/FixMyStreet/Cobrand/Greenwich.pm @@ -66,4 +66,13 @@ sub open311_config { $row->set_extra_fields( @$extra ); } +sub open311_contact_meta_override { + my ($self, $service, $contact, $meta) = @_; + + my %server_set = (easting => 1, northing => 1, closest_address => 1); + foreach (@$meta) { + $_->{automated} = 'server_set' if $server_set{$_->{code}}; + } +} + 1; |