aboutsummaryrefslogtreecommitdiffstats
path: root/perllib
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2018-05-17 17:55:05 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2018-06-04 14:09:31 +0100
commit360539076792ddaea6cb1ffb5cd48d694fc75be6 (patch)
treeecfe4581b8a0376e70ea0b4405325bfaa5028317 /perllib
parent46655c327dc3a3d1d16b685f11c58dad1f632db4 (diff)
[Bromley] Add asset/PROW ID meta to attributes.
Diffstat (limited to 'perllib')
-rw-r--r--perllib/Open311/PopulateServiceList.pm19
1 files changed, 19 insertions, 0 deletions
diff --git a/perllib/Open311/PopulateServiceList.pm b/perllib/Open311/PopulateServiceList.pm
index d283beb0f..4ffd8c143 100644
--- a/perllib/Open311/PopulateServiceList.pm
+++ b/perllib/Open311/PopulateServiceList.pm
@@ -248,6 +248,25 @@ sub _add_meta_to_contact_cobrand_overrides {
if ($self->_current_body->name eq 'Bromley Council') {
$contact->set_extra_metadata( id_field => 'service_request_id_ext');
+ # Lights we want to store feature ID, PROW on all categories.
+ push @$meta, {
+ code => 'prow_reference',
+ datatype => 'string',
+ description => 'Right of way reference',
+ order => 101,
+ required => 'false',
+ variable => 'true',
+ automated => 'hidden_field',
+ };
+ push @$meta, {
+ code => 'feature_id',
+ datatype => 'string',
+ description => 'Feature ID',
+ order => 100,
+ required => 'false',
+ variable => 'true',
+ automated => 'hidden_field',
+ } if $self->_current_service->{service_code} eq 'LIGHTS';
} elsif ($self->_current_body->name eq 'Warwickshire County Council') {
$contact->set_extra_metadata( id_field => 'external_id');
}