diff options
author | Matthew Somerville <matthew@mysociety.org> | 2016-08-22 17:39:00 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-08-24 12:08:25 +0100 |
commit | b86cf12575fd42289803656743d40a1065150818 (patch) | |
tree | 7a615b98aacc7bd5d2d78725d28bc99c5df671da /perllib/Open311/PopulateServiceList.pm | |
parent | 669fd23dbb7870fe20284f3e029a1fe6da09625b (diff) |
Automatically spot Open311 co-ord/ID attributes.
Diffstat (limited to 'perllib/Open311/PopulateServiceList.pm')
-rw-r--r-- | perllib/Open311/PopulateServiceList.pm | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/perllib/Open311/PopulateServiceList.pm b/perllib/Open311/PopulateServiceList.pm index 949e2baa9..c5f17334b 100644 --- a/perllib/Open311/PopulateServiceList.pm +++ b/perllib/Open311/PopulateServiceList.pm @@ -227,26 +227,26 @@ sub _add_meta_to_contact { # for attributes which we *don't* want to display to the user (e.g. as # fields in "category_extras" + if ($self->_current_body->name eq 'Bromley Council') { + $contact->set_extra_metadata( id_field => 'service_request_id_ext'); + } elsif ($self->_current_body->name eq 'Warwickshire County Council') { + $contact->set_extra_metadata( id_field => 'external_id'); + } + my %override = ( #2482 'Bromley Council' => [qw( - service_request_id_ext requested_datetime report_url title last_name email - easting - northing report_title public_anonymity_required email_alerts_requested ) ], #2243, 'Warwickshire County Council' => [qw( - external_id - easting - northing closest_address ) ], ); |