Merge pull request #6519 from marcosgdf/bug-multiprices

FIX Corrected bug where product multiprices admin page would not render properly due to a PHP fatal error
This commit is contained in:
Laurent Destailleur 2017-03-14 10:45:47 +01:00 committed by GitHub
commit 9827887643

View File

@ -155,7 +155,6 @@ $genPriceOptions = function($level) use ($price_options) {
return $return;
};
?>
<table class="noborder">
@ -173,7 +172,8 @@ $genPriceOptions = function($level) use ($price_options) {
<td class="fieldrequired" style="text-align: center"><?php
echo $langs->trans('SellingPrice').' '.$i;
// Label of price
if (! empty($conf->global->{"PRODUIT_MULTIPRICES_LABEL$i"})) {
$keyforlabel='PRODUIT_MULTIPRICES_LABEL'.$i;
if (! empty($conf->global->$keyforlabel)) {
print ' - '.$langs->trans($conf->global->$keyforlabel);
}
?>