Skip to content

Commit

Permalink
FIX 17.0 fatal when updating recurring supplier invoice line with php…
Browse files Browse the repository at this point in the history
…8 ($remise_percent is '' instead of 0) (#31713)
  • Loading branch information
atm-florianm authored Nov 6, 2024
1 parent 7133c65 commit 723c827
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/fourn/facture/card-rec.php
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,7 @@
$special_code = 3;
}

$remise_percent = price2num(GETPOST('remise_percent'), '', 2);
$remise_percent = price2num(GETPOST('remise_percent'), '', 2) ?: 0;

// Check minimum price
$productid = GETPOST('productid', 'int');
Expand Down

0 comments on commit 723c827

Please sign in to comment.