@@ -126,10 +126,7 @@ $sql.= ' LEFT JOIN '.MAIN_DB_PREFIX.'product_lot as pl on pl.fk_product = p.rowi
if($search_categ)$sql.=", ".MAIN_DB_PREFIX."categorie_product as cp";
$sql.=" WHERE p.entity IN (".getEntity('product',1).")";
if($search_categ)$sql.=" AND p.rowid = cp.fk_product";// Join for the needed table to filter by categ
if($sall)
{
$sql.=" AND (p.ref LIKE '%".$db->escape($sall)."%' OR p.label LIKE '%".$db->escape($sall)."%' OR p.description LIKE '%".$db->escape($sall)."%' OR p.note LIKE '%".$db->escape($sall)."%')";
if(!empty($arrayfields['m.warehouse']['checked']))print_liste_field_titre($arrayfields['m.warehouse']['label'],$_SERVER["PHP_SELF"],"","",$param,"",$sortfield,$sortorder);// We are on a specific warehouse card, no filter on other should be possible
if(!empty($arrayfields['e.label']['checked']))print_liste_field_titre($arrayfields['e.label']['label'],$_SERVER["PHP_SELF"],"e.label","",$param,"",$sortfield,$sortorder);// We are on a specific warehouse card, no filter on other should be possible