FIX Value of field int = 0 from modulebuilder must nto be set to null
This commit is contained in:
parent
540502e578
commit
7c3abe84b4
1 changed files with 1 additions and 1 deletions
|
|
@ -9457,7 +9457,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)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue