oops, better if we test the right const

This commit is contained in:
altairis-noe
2021-04-12 14:32:05 +02:00
parent beecc6f935
commit ab39cfdf09

View File

@@ -86,7 +86,7 @@ class mod_lot_advanced extends ModeleNumRefBatch
// Option to enable custom masks per product
$texte .= '<td class="right">';
if ($conf->global->PRODUCTBATCH_SN_USE_PRODUCT_MASKS) {
if ($conf->global->PRODUCTBATCH_LOT_USE_PRODUCT_MASKS) {
$texte .= '<a class="reposition" href="'.$_SERVER["PHP_SELF"].'?action=setmaskslot&amp;value=0">'.img_picto($langs->trans("Enabled"), 'on').'</a>';
} else {
$texte .= '<a class="reposition" href="'.$_SERVER["PHP_SELF"].'?action=setmaskslot&amp;value=1">'.img_picto($langs->trans("Disabled"), 'off').'</a>';