FIX type of variable does not accept null (#28490)
This commit is contained in:
parent
0033429991
commit
ccb562cc0b
1 changed files with 2 additions and 1 deletions
|
|
@ -259,7 +259,8 @@ if (empty($reshook)) {
|
|||
$originalId = $object->id;
|
||||
|
||||
if ($object->id > 0) {
|
||||
$object->id = $object->ref = null;
|
||||
$object->id = 0;
|
||||
$object->ref = '';
|
||||
$object->paye = 0;
|
||||
if (GETPOST('amount', 'alphanohtml')) {
|
||||
$object->amount = price2num(GETPOST('amount', 'alphanohtml'), 'MT', 2);
|
||||
|
|
|
|||
Loading…
Reference in a new issue