[*] BO : Added combination ean13 in the backend search #PSCFV-10436

This commit is contained in:
Damien Metzger
2013-11-20 16:30:25 +01:00
parent df4cc9d876
commit 8d0b1e9602
+1 -1
View File
@@ -3380,7 +3380,7 @@ class ProductCore extends ObjectModel
{
$sql->leftJoin('product_attribute', 'pa', 'pa.`id_product` = p.`id_product`');
$sql->join(Shop::addSqlAssociation('product_attribute', 'pa', false));
$where .= ' OR pa.`reference` LIKE \'%'.pSQL($query).'%\'';
$where .= ' OR pa.`reference` LIKE \'%'.pSQL($query).'%\' OR pa.`ean13` LIKE \'%'.pSQL($query).'%\'';
}
$sql->where($where);
$sql->join(Product::sqlStock('p', 'pa', false, $context->shop));