Merge pull request #18982 from atm-lena/13.0_FIX_updateExtrafield_EmptyValue

Function updateExtrafield : replace empty value to null
This commit is contained in:
Laurent Destailleur 2021-10-21 23:41:30 +02:00 committed by GitHub
commit f1565bb283
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5492,7 +5492,6 @@ abstract class CommonObject
}
$sql .= ")";
$resql = $this->db->query($sql);
if (!$resql)
{
@ -5746,6 +5745,11 @@ abstract class CommonObject
$this->array_options["options_".$key] = $this->db->idate($this->array_options["options_".$key]);
}
break;
case 'boolean':
if (empty($this->array_options["options_".$key])) {
$this->array_options["options_".$key] = null;
}
break;
/*
case 'link':
$param_list = array_keys($attributeParam['options']);