From 3f0c0f6828b8d027b8c1bdcd60194d6b86576d71 Mon Sep 17 00:00:00 2001 From: fBrignoli Date: Mon, 21 May 2012 09:45:47 +0000 Subject: [PATCH] [-] BO : Bug Fixed #PSCFV-2470 - Group by id_category --- controllers/admin/AdminCategoriesController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/controllers/admin/AdminCategoriesController.php b/controllers/admin/AdminCategoriesController.php index 180aa374a..edaaa28b8 100644 --- a/controllers/admin/AdminCategoriesController.php +++ b/controllers/admin/AdminCategoriesController.php @@ -156,6 +156,7 @@ class AdminCategoriesControllerCore extends AdminController $this->_filter .= ' AND `id_parent` = '.(int)$id_parent.' '; $this->_select = 'category_shop.`position` '; $this->_join = Shop::addSqlAssociation('category', 'a'); + $this->_group = 'GROUP BY a.id_category'; // we add restriction for shop if (Shop::getContext() == Shop::CONTEXT_SHOP && $is_multishop) $this->_where = ' AND category_shop.`id_shop` = '.(int)Context::getContext()->shop->id;