From b1132131f307b7fa85ceeaad5d0ffd32cef8fcfa Mon Sep 17 00:00:00 2001 From: "Laurent Destailleur (aka Eldy)" Date: Wed, 5 Feb 2025 13:09:06 +0100 Subject: [PATCH] Fix regression --- htdocs/core/actions_massactions.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/actions_massactions.inc.php b/htdocs/core/actions_massactions.inc.php index 62280a7cce2..57dbaecd040 100644 --- a/htdocs/core/actions_massactions.inc.php +++ b/htdocs/core/actions_massactions.inc.php @@ -1375,7 +1375,7 @@ if (!$error && ($action == 'updateprice' && $confirm == 'yes') && $permissiontoa } } elseif (getDolGlobalString('PRODUIT_MULTIPRICES')) { $maxlevel = getDolGlobalInt('PRODUIT_MULTIPRICES_LIMIT'); - for ($level = 1; $level <= $malevel; $level++) { + for ($level = 1; $level <= $maxlevel; $level++) { if ($object->price_base_type == 'TTC') { $newprice = $object->multiprices_ttc[$level] * (100 + $pricepercentage) / 100; $minprice = $object->multiprices_min_ttc[$level];