Commit e483ab37 authored by mbriand's avatar mbriand
Browse files

Les produits plus en vente ne doivent pas apparaitre dans la recherche

parent 1cd2bbb2
......@@ -245,9 +245,9 @@ class fsearch extends stdcontents
"INNER JOIN `cpt_type_produit` ".
"USING (`id_typeprod`) ".
"WHERE `cpt_mise_en_vente`.`id_comptoir` = 3 ".
"AND `cpt_produits`.`prod_archive` = 0 AND " .
"AND `cpt_produits`.`prod_archive` = 0 " .
"AND datediff(curdate(), `date_fin_produit`) <= 0 ".
"(`nom_prod` REGEXP '".$sqlpattern."' OR " .
"AND (`nom_prod` REGEXP '".$sqlpattern."' OR " .
"`nom_typeprod` REGEXP '".$sqlpattern."') " .
"ORDER BY `nom_typeprod`, `nom_prod` " .
"LIMIT 3");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment