Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into 18.0

Conflicts:
	htdocs/core/class/commonobject.class.php
This commit is contained in:
Laurent Destailleur
2024-02-07 18:11:36 +01:00
14 changed files with 215 additions and 70 deletions

View File

@@ -9155,7 +9155,7 @@ abstract class CommonObject
$this->$field = (double) $obj->$field;
}
} else {
if (isset($obj->$field) && (!is_null($obj->$field) || (isset($info['notnull']) && $info['notnull'] == 1)) {
if (isset($obj->$field) && (!is_null($obj->$field) || (isset($info['notnull']) && $info['notnull'] == 1))) {
$this->$field = (int) $obj->$field;
} else {
$this->$field = null;