Replacing , with . in gps value

This commit is contained in:
Frank Schubert
2022-01-27 21:44:22 +01:00
parent 23f16fdcad
commit 9198a49a49

View File

@@ -69,8 +69,8 @@ class Workflowvalue extends mfBaseModel {
if($this->item->type == "gps") {
if(is_array($value) && count($value) == 2) {
$lat = $value['lat'];
$long = $value['long'];
$lat = str_replace(",", ".", $value['lat']);
$long = str_replace(",", ".", $value['long']);
$value = "$lat;$long";
if($lat == null && $long == null) {
$value = null;