aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/SendReport/Open311.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2018-05-14 10:36:45 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2018-05-14 10:36:45 +0100
commit17431f583e5362d205f4b6c75be5d11aa17dc97b (patch)
tree65ae8d7e0b59c48bcfdc7ddc71371fddcff34929 /perllib/FixMyStreet/SendReport/Open311.pm
parent94b45011bcbd1844077eaa973889eef7ec7ce695 (diff)
Make sure closest address stringified in extra.
22f0fed0b made the closest address an object, and objects can’t be directly stored in the extra column.
Diffstat (limited to 'perllib/FixMyStreet/SendReport/Open311.pm')
-rw-r--r--perllib/FixMyStreet/SendReport/Open311.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/SendReport/Open311.pm b/perllib/FixMyStreet/SendReport/Open311.pm
index dfe0b190a..84aa851ed 100644
--- a/perllib/FixMyStreet/SendReport/Open311.pm
+++ b/perllib/FixMyStreet/SendReport/Open311.pm
@@ -48,7 +48,7 @@ sub send {
if ($_->{code} eq $id_field) {
push @$extra, { name => $id_field, value => $row->id };
} elsif ($_->{code} eq 'closest_address' && $h->{closest_address}) {
- push @$extra, { name => $_->{code}, value => $h->{$_->{code}} };
+ push @$extra, { name => $_->{code}, value => "$h->{closest_address}" };
} elsif ($_->{code} =~ /^(easting|northing)$/) {
# NB If there's ever a cobrand with always_send_latlong=0 and
# send_notpinpointed=0 then this line will need changing to