[-] BO: Fix category association in global context #PSCFV-5551

This commit is contained in:
Rémi Gaillard
2012-12-03 11:25:59 +01:00
parent 088cb759f0
commit 4a106e51bb
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -798,7 +798,7 @@ class ProductCore extends ObjectModel
SELECT c.`id_category`
FROM `'._DB_PREFIX_.'category_product` cp
LEFT JOIN `'._DB_PREFIX_.'category` c ON (c.`id_category` = cp.`id_category`)
'.Shop::addSqlAssociation('category', 'c', true).'
'.Shop::addSqlAssociation('category', 'c', true, null, true).'
WHERE cp.`id_category` NOT IN ('.implode(',', array_map('intval', $categories)).')
AND cp.id_product = '.$this->id
);