// 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:
1 parent
f9a0664810
commit
421ad89e45
1 file changed
+2
-1
+2
-1
@@ -4201,7 +4201,8 @@ class ProductCore extends ObjectModel
|
|||||||
$result = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS(
|
$result = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS(
|
||||||
'SELECT cp.`id_category` AS id
|
'SELECT cp.`id_category` AS id
|
||||||
FROM `'._DB_PREFIX_.'category_product` cp
|
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
|
WHERE cp.`id_product` = '.(int)$this->id
|
||||||
);
|
);
|
||||||
return $result;
|
return $result;
|
||||||
|
|||||||
Reference in new issue
Block a user