// Add Collection in Category::getAllChildren()
This commit is contained in:
1 parent
b59ddba454
commit
a25d5d2488
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