// Fix multishop bug on product_attribute list

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14847 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rMalie
2012-04-24 13:48:23 +00:00
parent 336fd07a4e
commit 21037010d2
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);