Merge pull request #15442 from hregis/develop_bug2

FIX to preserve order of multiprices fields
This commit is contained in:
Laurent Destailleur 2020-11-20 13:38:19 +01:00 committed by GitHub
commit 6976471988
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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'=>floatval('40.'.sprintf('%03s', $i)));
$arraypricelevel[$i] = array($i); $arraypricelevel[$i] = array($i);
} }
} }