// 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:
rMalie
2011-12-05 13:56:24 +00:00
parent 86683a963e
commit 2644f4b88d
@@ -1734,9 +1734,8 @@ class AdminProductsControllerCore extends AdminController
$root_categ->dashes = str_repeat(' - ',$root_categ->level_depth);
$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->dashes = str_repeat(' - ',$categ->level_depth);
$category_tree[] = $categ;