Merge #16330 - Fix #16325, Fix #15109 - Editing geometry data throws error on using the GUI

Pull-request: #16330
Fixes: #16325
Fixes: #15109

Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
William Desportes 2020-09-20 23:44:15 +02:00
commit 4f8e1b8d5a
No known key found for this signature in database
GPG Key ID: 90A0EF1B8251A889

View File

@ -2597,6 +2597,9 @@ class InsertEdit
$current_value = mb_substr($current_value, 1, -1);
// Remove escaping apostrophes
$current_value = str_replace("''", "'", $current_value);
// Remove backslash-escaped apostrophes
$current_value = str_replace("\'", "'", $current_value);
return $multi_edit_funcs[$key] . '(' . $current_value . ')';
} elseif (! in_array($multi_edit_funcs[$key], $func_no_param)
|| ($current_value != "''"