aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perllib/FixMyStreet/SendReport/Open311.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/SendReport/Open311.pm b/perllib/FixMyStreet/SendReport/Open311.pm
index eaa223bb2..467030a89 100644
--- a/perllib/FixMyStreet/SendReport/Open311.pm
+++ b/perllib/FixMyStreet/SendReport/Open311.pm
@@ -49,7 +49,11 @@ sub send {
} elsif ($_->{code} eq 'closest_address' && $h->{closest_address}) {
push @$extra, { name => $_->{code}, value => $h->{$_->{code}} };
} elsif ($_->{code} =~ /^(easting|northing)$/) {
- if ( $row->used_map || ( !$row->used_map && !$row->postcode ) ) {
+ # NB If there's ever a cobrand with always_send_latlong=0 and
+ # send_notpinpointed=0 then this line will need changing to
+ # consider the send_notpinpointed check, as per the
+ # '#NOTPINPOINTED#' code in perllib/Open311.pm.
+ if ( $row->used_map || $open311_params{always_send_latlong} ) {
push @$extra, { name => $_->{code}, value => $h->{$_->{code}} };
}
}