From da881e8e170ba4862961bbbaf649b1000caf855d Mon Sep 17 00:00:00 2001 From: sThiebaut Date: Mon, 5 Dec 2011 16:52:27 +0000 Subject: [PATCH] // fixed bug on category count --- classes/Category.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/classes/Category.php b/classes/Category.php index ab76139a9..7c9f7af05 100644 --- a/classes/Category.php +++ b/classes/Category.php @@ -594,8 +594,7 @@ class CategoryCore extends ObjectModel LEFT JOIN `'._DB_PREFIX_.'category_product` cp ON p.`id_product` = cp.`id_product` WHERE cp.`id_category` = '.(int)$this->id. ($active ? ' AND p.`active` = 1' : ''). - ($id_supplier ? 'AND p.id_supplier = '.(int)$id_supplier : ''). - ' GROUP BY p.id_product'; + ($id_supplier ? 'AND p.id_supplier = '.(int)$id_supplier : ''); return (int)Db::getInstance(_PS_USE_SQL_SLAVE_)->getValue($sql); }