aboutsummaryrefslogtreecommitdiffstats
path: root/perllib
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2019-03-06 12:56:06 +0000
committerMatthew Somerville <matthew-github@dracos.co.uk>2019-03-07 15:56:32 +0000
commit1cff2a0e83ffd55a511d0c4751df9613094aefbf (patch)
treeea6faea8c99356a3d6c255d4262a1074eee2a37c /perllib
parent600f91850a705c8c47f24dcf2ecc912d829b8a2c (diff)
Show all Open311 extra fields in edit admin.
Otherwise any such fields are lost upon a manual edit.
Diffstat (limited to 'perllib')
-rw-r--r--perllib/FixMyStreet/DB/Result/Contact.pm3
1 files changed, 0 insertions, 3 deletions
diff --git a/perllib/FixMyStreet/DB/Result/Contact.pm b/perllib/FixMyStreet/DB/Result/Contact.pm
index 4250a20c7..81f770f8f 100644
--- a/perllib/FixMyStreet/DB/Result/Contact.pm
+++ b/perllib/FixMyStreet/DB/Result/Contact.pm
@@ -96,10 +96,7 @@ sub category_display {
sub get_metadata_for_editing {
my $self = shift;
- my $id_field = $self->id_field;
my @metadata = @{$self->get_extra_fields};
- # First, ones we always want to ignore (hard-coded, old system)
- @metadata = grep { $_->{code} !~ /^(easting|northing|closest_address|$id_field)$/ } @metadata;
# Just in case the extra data is in an old parsed format
foreach (@metadata) {