mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-03 23:52:24 +01:00
FIX Value of field int = 0 from modulebuilder must nto be set to null
This commit is contained in:
@@ -9515,7 +9515,7 @@ abstract class CommonObject
|
||||
$queryarray[$field] = ((int) $conf->entity);
|
||||
} else {
|
||||
// $this->{$field} may be null, '', 0, '0', 123, '123'
|
||||
if ((isset($this->{$field}) && $this->{$field} != '') || !empty($info['notnull'])) {
|
||||
if ((isset($this->{$field}) && ((string) $this->{$field}) != '') || !empty($info['notnull'])) {
|
||||
if (!isset($this->{$field})) {
|
||||
$queryarray[$field] = 0;
|
||||
} elseif ($this->isInt($info)) {
|
||||
|
||||
Reference in New Issue
Block a user