Commit 7cafdd19 authored by Sebastian Castro's avatar Sebastian Castro

Import: convert lat/lng from numeric to string

parent ba2edf15
...@@ -283,6 +283,11 @@ class ElementImportMappingService ...@@ -283,6 +283,11 @@ class ElementImportMappingService
$data[$key]['streetAddress'] = $data[$key]['fullAddress']; $data[$key]['streetAddress'] = $data[$key]['fullAddress'];
unset($data[$key]['fullAddress']); unset($data[$key]['fullAddress']);
} }
// convert lat/long numeric into string
if (isset($data[$key]['latitude']) && is_numeric($data[$key]['latitude']))
$data[$key]['latitude'] = '' . $data[$key]['latitude'];
if (isset($data[$key]['longitude']) && is_numeric($data[$key]['longitude']))
$data[$key]['longitude'] = '' . $data[$key]['longitude'];
} }
return $data; return $data;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment