Remove warning
This commit is contained in:
parent
ea4ad24ac5
commit
2da6fc1ef0
@ -3,9 +3,9 @@
|
|||||||
|
|
||||||
## ENABLE MODULE ZAPIER ON DOLIBARR
|
## ENABLE MODULE ZAPIER ON DOLIBARR
|
||||||
|
|
||||||
This should also enable the module API (required for authentication by Zapier service).
|
This should also enable the module API (required for authentication by Zapier service and to execute action in Dolibarr by Zapier).
|
||||||
|
|
||||||
Create the Dolibarr login that will be used by Zapier to call APIs.
|
Create the Dolibarr login that will be used by Zapier to call APIs. Give the login the permissions on the action you plan to automate.
|
||||||
|
|
||||||
|
|
||||||
## CREATE A ZAPIER DEVELOPPER ACCOUNT
|
## CREATE A ZAPIER DEVELOPPER ACCOUNT
|
||||||
|
|||||||
@ -7538,9 +7538,12 @@ abstract class CommonObject
|
|||||||
if ($field == 'entity' && is_null($this->{$field})) $queryarray[$field] = $conf->entity;
|
if ($field == 'entity' && is_null($this->{$field})) $queryarray[$field] = $conf->entity;
|
||||||
else {
|
else {
|
||||||
// $this->{$field} may be null, '', 0, '0', 123, '123'
|
// $this->{$field} may be null, '', 0, '0', 123, '123'
|
||||||
if ($this->{$field} != '' || !empty($info['notnull'])) {
|
if ((isset($this->{$field}) && $this->{$field} != '') || !empty($info['notnull'])) {
|
||||||
if ($this->isInt($info)) $queryarray[$field] = (int) $this->{$field}; // If '0', it may be set to null later if $info['notnull'] == -1
|
if ($this->isInt($info)) {
|
||||||
if ($this->isFloat($info)) $queryarray[$field] = (double) $this->{$field}; // If '0', it may be set to null later if $info['notnull'] == -1
|
$queryarray[$field] = (int) $this->{$field}; // If '0', it may be set to null later if $info['notnull'] == -1
|
||||||
|
} elseif ($this->isFloat($info)) {
|
||||||
|
$queryarray[$field] = (double) $this->{$field}; // If '0', it may be set to null later if $info['notnull'] == -1
|
||||||
|
}
|
||||||
} else $queryarray[$field] = null;
|
} else $queryarray[$field] = null;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user