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];