[-] BO : fix bug #PSCFV-2237 - Broken SQL Request in Product->getAccessories()

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15101 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
tDidierjean
2012-05-09 13:15:37 +00:00
parent 2bd2416cc0
commit dbb931aea8
+1 -1
View File
@@ -2911,7 +2911,7 @@ class ProductCore extends ObjectModel
AND tr.`id_state` = 0)
LEFT JOIN `'._DB_PREFIX_.'tax` t ON (t.`id_tax` = tr.`id_tax`)
'.Product::sqlStock('p', 0).'
AND `id_product_1` = '.(int)$this->id.
WHERE `id_product_1` = '.(int)$this->id.
($active ? ' AND product_shop.`active` = 1' : '');
if (!$result = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS($sql))
return false;