Skip to content
Snippets Groups Projects
Unverified Commit 7cafdd19 authored by Sebastian Castro's avatar Sebastian Castro
Browse files

Import: convert lat/lng from numeric to string

parent ba2edf15
No related branches found
No related tags found
No related merge requests found
......@@ -283,6 +283,11 @@ class ElementImportMappingService
$data[$key]['streetAddress'] = $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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment