// Add Collection in Category::getAllChildren()
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10913 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
86683a963e
commit
2644f4b88d
1 file changed
+1
-2
@@ -1734,9 +1734,8 @@ class AdminProductsControllerCore extends AdminController
|
|||||||
$root_categ->dashes = str_repeat(' - ',$root_categ->level_depth);
|
$root_categ->dashes = str_repeat(' - ',$root_categ->level_depth);
|
||||||
$category_tree[] = $root_categ;
|
$category_tree[] = $root_categ;
|
||||||
|
|
||||||
foreach ($children as $k => $categ)
|
foreach ($children as $categ)
|
||||||
{
|
{
|
||||||
$categ = new Category($categ['id_category'],$this->context->language->id);
|
|
||||||
$categ->selected = $this->_category->id_category == $categ->id;
|
$categ->selected = $this->_category->id_category == $categ->id;
|
||||||
$categ->dashes = str_repeat(' - ',$categ->level_depth);
|
$categ->dashes = str_repeat(' - ',$categ->level_depth);
|
||||||
$category_tree[] = $categ;
|
$category_tree[] = $categ;
|
||||||
|
|||||||
Reference in new issue
Block a user