diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-02-03 13:33:15 +0000 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-02-03 13:56:30 +0000 |
commit | 1fab7bb790f1e4fed0fe49e8fac9e2612d1ebeed (patch) | |
tree | 373664941f34c0c4c598d8ae62ac88cedfe6f78e /perllib/FixMyStreet/DB/Result | |
parent | 64e43ba8d5d4223cdd0eb29bea289201a490a4de (diff) |
Add a 'closest_address' hidden Open311 attribute.
This joins easting, northing and an external ID field.
Diffstat (limited to 'perllib/FixMyStreet/DB/Result')
-rw-r--r-- | perllib/FixMyStreet/DB/Result/Contact.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/DB/Result/Contact.pm b/perllib/FixMyStreet/DB/Result/Contact.pm index 0c9a7c0d8..f7e8ac5b5 100644 --- a/perllib/FixMyStreet/DB/Result/Contact.pm +++ b/perllib/FixMyStreet/DB/Result/Contact.pm @@ -86,7 +86,7 @@ __PACKAGE__->many_to_many( response_priorities => 'contact_response_priorities', sub get_metadata_for_input { my $self = shift; my $id_field = $self->id_field; - my @metadata = grep { $_->{code} !~ /^(easting|northing|$id_field)$/ } @{$self->get_extra_fields}; + my @metadata = grep { $_->{code} !~ /^(easting|northing|closest_address|$id_field)$/ } @{$self->get_extra_fields}; # Just in case the extra data is in an old parsed format foreach (@metadata) { |