From ec4d157a42e0a8e0f8af247e17aebb9ecd5f0d29 Mon Sep 17 00:00:00 2001 From: dMetzger Date: Mon, 20 Aug 2012 14:57:22 +0000 Subject: [PATCH] // Fixed missing association between shop and categories #PSCFV-3685 --- classes/Category.php | 1 + 1 file changed, 1 insertion(+) diff --git a/classes/Category.php b/classes/Category.php index a5096036d..8dc4f043a 100644 --- a/classes/Category.php +++ b/classes/Category.php @@ -451,6 +451,7 @@ class CategoryCore extends ObjectModel $result = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS(' SELECT * FROM `'._DB_PREFIX_.'category` c + '.Shop::addSqlAssociation('category', 'c').' LEFT JOIN `'._DB_PREFIX_.'category_lang` cl ON c.`id_category` = cl.`id_category`'.Shop::addSqlRestrictionOnLang('cl').' WHERE 1 '.$sql_filter.' '.($id_lang ? 'AND `id_lang` = '.(int)$id_lang : '').' '.($active ? 'AND `active` = 1' : '').'