// Small fix

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16983 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rGaillard
2012-08-23 17:49:12 +00:00
parent f9a0664810
commit 421ad89e45
+2 -1
View File
@@ -4201,7 +4201,8 @@ class ProductCore extends ObjectModel
$result = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS(
'SELECT cp.`id_category` AS id
FROM `'._DB_PREFIX_.'category_product` cp
'.Shop::addSqlAssociation('category', 'cp').'
LEFT JOIN `'._DB_PREFIX_.'category` c ON (c.id_category = cp.id_category)
'.Shop::addSqlAssociation('category', 'c').'
WHERE cp.`id_product` = '.(int)$this->id
);
return $result;