FIX: warning when adding a line if $remise_percent is an empty string
This commit is contained in:
parent
ea47a55144
commit
ff3707b650
@ -672,6 +672,7 @@ if (empty($reshook))
|
||||
|
||||
$qty = price2num(GETPOST('qty'.$predef, 'alpha'));
|
||||
$remise_percent = (GETPOSTISSET('remise_percent'.$predef) ? price2num(GETPOST('remise_percent'.$predef, 'alpha')) : 0);
|
||||
if ($remise_percent === '') $remise_percent = 0;
|
||||
|
||||
// Extrafields
|
||||
$extralabelsline = $extrafields->fetch_name_optionals_label($object->table_element_line);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user