// Another fix with category position
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17294 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -252,7 +252,7 @@ class BlockCategories extends Module
|
|||||||
WHERE (c.`active` = 1 OR c.`id_category` = 1)
|
WHERE (c.`active` = 1 OR c.`id_category` = 1)
|
||||||
'.((int)($maxdepth) != 0 ? ' AND `level_depth` <= '.(int)($maxdepth) : '').'
|
'.((int)($maxdepth) != 0 ? ' AND `level_depth` <= '.(int)($maxdepth) : '').'
|
||||||
AND cg.`id_group` IN ('.pSQL($groups).')
|
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;
|
return;
|
||||||
$resultParents = array();
|
$resultParents = array();
|
||||||
$resultIds = array();
|
$resultIds = array();
|
||||||
|
|||||||
Reference in New Issue
Block a user