// Fix multishop bug on product_attribute list

This commit is contained in:
rMalie
2012-04-24 13:48:23 +00:00
parent b160405932
commit eed6286aec
3 changed files with 13 additions and 10 deletions
+1 -1
View File
@@ -1827,7 +1827,7 @@ class ProductCore extends ObjectModel
$sql->select('pa.id_product_attribute');
$sql->leftOuterJoin('product_attribute', 'pa', 'p.`id_product` = pa.`id_product`');
$sql->join(Shop::addSqlAssociation('product_attribute', 'pa', false));
$sql->where('product_attribute_shop.default_on = 1');
$sql->where('(product_attribute_shop.default_on = 1 OR product_attribute_shop.default_on IS NULL)');
}
$result = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS($sql);