Merge pull request #23384 from Humml87/develop_Fix_#23383_SalesOrderPos_Update

Fix #23383 Set $remise_percent to 0, if GETPOST is empty.
This commit is contained in:
Laurent Destailleur 2023-01-02 00:16:30 +01:00 committed by GitHub
commit df8c453403
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1106,7 +1106,7 @@ if (empty($reshook)) {
$special_code = 3;
}
$remise_percent = price2num(GETPOST('remise_percent'), '', 2);
$remise_percent = GETPOST('remise_percent') != '' ? price2num(GETPOST('remise_percent'), '', 2) : 0;
// Check minimum price
$productid = GETPOST('productid', 'int');