[-] BO : Bug Fixed #PSCFV-2470 - Group by id_category
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15483 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
571bf8ce18
commit
11df2e41e7
1 file changed
+1
@@ -156,6 +156,7 @@ class AdminCategoriesControllerCore extends AdminController
|
|||||||
$this->_filter .= ' AND `id_parent` = '.(int)$id_parent.' ';
|
$this->_filter .= ' AND `id_parent` = '.(int)$id_parent.' ';
|
||||||
$this->_select = 'category_shop.`position` ';
|
$this->_select = 'category_shop.`position` ';
|
||||||
$this->_join = Shop::addSqlAssociation('category', 'a');
|
$this->_join = Shop::addSqlAssociation('category', 'a');
|
||||||
|
$this->_group = 'GROUP BY a.id_category';
|
||||||
// we add restriction for shop
|
// we add restriction for shop
|
||||||
if (Shop::getContext() == Shop::CONTEXT_SHOP && $is_multishop)
|
if (Shop::getContext() == Shop::CONTEXT_SHOP && $is_multishop)
|
||||||
$this->_where = ' AND category_shop.`id_shop` = '.(int)Context::getContext()->shop->id;
|
$this->_where = ' AND category_shop.`id_shop` = '.(int)Context::getContext()->shop->id;
|
||||||
|
|||||||
Reference in new issue
Block a user