FIX type of variable does not accept null (#28490)

This commit is contained in:
lamrani abdelwadoud 2024-02-28 16:55:11 +01:00 committed by GitHub
parent 0033429991
commit ccb562cc0b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);