From 5322607a96e1cfb8f0aa70c45f3d8c04fa24f45c Mon Sep 17 00:00:00 2001 From: rGaillard Date: Tue, 11 Sep 2012 16:35:54 +0000 Subject: [PATCH] // Another fix with category position git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17294 b9a71923-0436-4b27-9f14-aed3839534dd --- modules/blockcategories/blockcategories.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/blockcategories/blockcategories.php b/modules/blockcategories/blockcategories.php index 31f4b544e..8ef0175e2 100644 --- a/modules/blockcategories/blockcategories.php +++ b/modules/blockcategories/blockcategories.php @@ -252,7 +252,7 @@ class BlockCategories extends Module WHERE (c.`active` = 1 OR c.`id_category` = 1) '.((int)($maxdepth) != 0 ? ' AND `level_depth` <= '.(int)($maxdepth) : '').' AND cg.`id_group` IN ('.pSQL($groups).') - ORDER BY `level_depth` ASC, '.(Configuration::get('BLOCK_CATEG_SORT') ? 'cl.`name`' : 'c.`position`').' '.(Configuration::get('BLOCK_CATEG_SORT_WAY') ? 'DESC' : 'ASC'))) + ORDER BY `level_depth` ASC, '.(Configuration::get('BLOCK_CATEG_SORT') ? 'cl.`name`' : 'category_shop.`position`').' '.(Configuration::get('BLOCK_CATEG_SORT_WAY') ? 'DESC' : 'ASC'))) return; $resultParents = array(); $resultIds = array();