Skip to content
Snippets Groups Projects
Commit d03714d6 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: select

parent 1810433a
No related branches found
No related tags found
No related merge requests found
......@@ -123,10 +123,6 @@ if ($mode == 'search')
if ($search_type > 0 && in_array($search_type,array('1,3','2,3'))) $sql .= " AND s.client IN (".$db->escape($search_type).")";
if ($search_type > 0 && in_array($search_type,array('4'))) $sql .= " AND s.fournisseur = 1";
if ($search_type == '0') $sql .= " AND s.client = 0 AND s.fournisseur = 0";
if (!empty($conf->barcode->enabled))
{
$sql.= "AND s.barcode LIKE '".$db->escape($crit)."'";
}
$result=$db->query($sql);
if ($result)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment