FIX better method to preserve order

This commit is contained in:
Regis Houssin 2020-11-20 08:07:44 +01:00
parent 524aa96880
commit 265d19f563

View File

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