aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2019-03-11 10:15:49 +0000
committerMatthew Somerville <matthew-github@dracos.co.uk>2019-03-12 16:13:00 +0000
commit7aab45bffaab6c5bd7c50acef7dc5bce6f233bc1 (patch)
tree36371d54d1397cb532ee92728233a767306af879
parent552ac2112cb7a522d17199dc74d9640df32bc6c7 (diff)
[Oxfordshire] always send easting/northing over open311
Remove the config that stopped us sending easting/northing if the user had not clicked the map.
-rw-r--r--perllib/FixMyStreet/Cobrand/Oxfordshire.pm6
1 files changed, 2 insertions, 4 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Oxfordshire.pm b/perllib/FixMyStreet/Cobrand/Oxfordshire.pm
index 5def2bb61..08482a0b3 100644
--- a/perllib/FixMyStreet/Cobrand/Oxfordshire.pm
+++ b/perllib/FixMyStreet/Cobrand/Oxfordshire.pm
@@ -178,14 +178,12 @@ sub open311_config {
my $extra = $row->get_extra_fields;
push @$extra, { name => 'external_id', value => $row->id };
+ push @$extra, { name => 'northing', value => $h->{northing} };
+ push @$extra, { name => 'easting', value => $h->{easting} };
if ($h->{closest_address}) {
push @$extra, { name => 'closest_address', value => "$h->{closest_address}" }
}
- if ( $row->used_map || ( !$row->used_map && !$row->postcode ) ) {
- push @$extra, { name => 'northing', value => $h->{northing} };
- push @$extra, { name => 'easting', value => $h->{easting} };
- }
$row->set_extra_fields( @$extra );
$params->{extended_description} = 'oxfordshire';