diff --git a/htdocs/product/stock/productlot_list.php b/htdocs/product/stock/productlot_list.php
index 58a03fd2563..ec5e3ebde69 100644
--- a/htdocs/product/stock/productlot_list.php
+++ b/htdocs/product/stock/productlot_list.php
@@ -344,8 +344,8 @@ if ($resql)
if (!empty($arrayfields['t.entity']['checked'])) print '
| ';
if (!empty($arrayfields['t.batch']['checked'])) print ' | ';
if (!empty($arrayfields['t.fk_product']['checked'])) print ' | ';
- if (!empty($arrayfields['t.sellby']['checked']) && empty($conf->global->PRODUCT_DISABLE_SELLBY)) print ' | ';
- if (!empty($arrayfields['t.eatby']['checked']) && empty($conf->global->PRODUCT_DISABLE_EATBY)) print ' | ';
+ if (!empty($arrayfields['t.sellby']['checked'])) print ' | ';
+ if (!empty($arrayfields['t.eatby']['checked'])) print ' | ';
if (!empty($arrayfields['t.fk_user_creat']['checked'])) print ' | ';
if (!empty($arrayfields['t.fk_user_modif']['checked'])) print ' | ';
if (!empty($arrayfields['t.import_key']['checked'])) print ' | ';
@@ -387,8 +387,8 @@ if ($resql)
if (!empty($arrayfields['t.entity']['checked'])) print_liste_field_titre($arrayfields['t.entity']['label'], $_SERVER['PHP_SELF'], 't.entity', '', $param, '', $sortfield, $sortorder);
if (!empty($arrayfields['t.batch']['checked'])) print_liste_field_titre($arrayfields['t.batch']['label'], $_SERVER['PHP_SELF'], 't.batch', '', $param, '', $sortfield, $sortorder);
if (!empty($arrayfields['t.fk_product']['checked'])) print_liste_field_titre($arrayfields['t.fk_product']['label'], $_SERVER['PHP_SELF'], 't.fk_product', '', $param, '', $sortfield, $sortorder);
- if (!empty($arrayfields['t.sellby']['checked']) && empty($conf->global->PRODUCT_DISABLE_SELLBY)) print_liste_field_titre($arrayfields['t.sellby']['label'], $_SERVER['PHP_SELF'], 't.sellby', '', $param, '', $sortfield, $sortorder);
- if (!empty($arrayfields['t.eatby']['checked']) && empty($conf->global->PRODUCT_DISABLE_EATBY)) print_liste_field_titre($arrayfields['t.eatby']['label'], $_SERVER['PHP_SELF'], 't.eatby', '', $param, '', $sortfield, $sortorder);
+ if (!empty($arrayfields['t.sellby']['checked'])) print_liste_field_titre($arrayfields['t.sellby']['label'], $_SERVER['PHP_SELF'], 't.sellby', '', $param, '', $sortfield, $sortorder);
+ if (!empty($arrayfields['t.eatby']['checked'])) print_liste_field_titre($arrayfields['t.eatby']['label'], $_SERVER['PHP_SELF'], 't.eatby', '', $param, '', $sortfield, $sortorder);
if (!empty($arrayfields['t.fk_user_creat']['checked'])) print_liste_field_titre($arrayfields['t.fk_user_creat']['label'], $_SERVER['PHP_SELF'], 't.fk_user_creat', '', $param, '', $sortfield, $sortorder);
if (!empty($arrayfields['t.fk_user_modif']['checked'])) print_liste_field_titre($arrayfields['t.fk_user_modif']['label'], $_SERVER['PHP_SELF'], 't.fk_user_modif', '', $param, '', $sortfield, $sortorder);
if (!empty($arrayfields['t.import_key']['checked'])) print_liste_field_titre($arrayfields['t.import_key']['label'], $_SERVER['PHP_SELF'], 't.import_key', '', $param, '', $sortfield, $sortorder);
@@ -448,12 +448,12 @@ if ($resql)
print ''.$productstatic->getNomUrl(1).' | ';
if (!$i) $totalarray['nbfield']++;
}
- if (!empty($arrayfields['t.sellby']['checked']) && empty($conf->global->PRODUCT_DISABLE_SELLBY))
+ if (!empty($arrayfields['t.sellby']['checked']))
{
print ''.dol_print_date($db->jdate($obj->sellby), 'day').' | ';
if (!$i) $totalarray['nbfield']++;
}
- if (!empty($arrayfields['t.eatby']['checked']) && empty($conf->global->PRODUCT_DISABLE_EATBY))
+ if (!empty($arrayfields['t.eatby']['checked']))
{
print ''.dol_print_date($db->jdate($obj->eatby), 'day').' | ';
if (!$i) $totalarray['nbfield']++;