// Small fix

This commit is contained in:
rGaillard
2012-08-23 17:49:12 +00:00
parent c3f8245787
commit 1168064f50
+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;