FIX to preserve order of multiprices fields

This commit is contained in:
Regis Houssin 2020-11-19 14:14:43 +01:00
parent b9f072498c
commit 524aa96880

View File

@ -237,7 +237,7 @@ if ($conf->global->PRODUIT_MULTIPRICES) {
} else { } else {
$labelp = $langs->trans("SellingPrice")." ".$i; $labelp = $langs->trans("SellingPrice")." ".$i;
} }
$arrayfields['p.sellprice'.$i] = array('label'=>$labelp, 'checked'=>1, 'enabled'=>$conf->global->PRODUIT_MULTIPRICES, 'position'=>40); $arrayfields['p.sellprice'.$i] = array('label'=>$labelp, 'checked'=>1, 'enabled'=>$conf->global->PRODUIT_MULTIPRICES, 'position'=>'40.'.$i);
$arraypricelevel[$i] = array($i); $arraypricelevel[$i] = array($i);
} }
} }