From 25cd7f07f8ed485d6c4e234a4df7f31b11f121cd 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 git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16912 b9a71923-0436-4b27-9f14-aed3839534dd --- 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' : '').'