[-] FO: Fix PSCFV-3812
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17084 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
+2
-1
@@ -2966,7 +2966,8 @@ class ProductCore extends ObjectModel
|
|||||||
($active ? ' AND product_shop.`active` = 1' : '');
|
($active ? ' AND product_shop.`active` = 1' : '');
|
||||||
if (!$result = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS($sql))
|
if (!$result = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS($sql))
|
||||||
return false;
|
return false;
|
||||||
|
foreach ($result as &$row)
|
||||||
|
$row['id_product_attribute'] = Product::getDefaultAttribute((int)$row['id_product']);
|
||||||
return $this->getProductsProperties($id_lang, $result);
|
return $this->getProductsProperties($id_lang, $result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user