[-] BO : FixBug #PSCSX-40 categories unchanged after select a new home category

This commit is contained in:
Jerome Nadaud
2013-11-25 12:08:34 +01:00
parent c613ca5a7d
commit 611cfd90a0
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -203,8 +203,9 @@ class AdminShopControllerCore extends AdminController
$children = Category::getChildren($root_category['id_category'], $this->context->language->id);
foreach ($children as $child)
$selected_cat[] = $child['id_category'];
$helper = new Helper();
$this->content = $helper->renderCategoryTree($root_category, $selected_cat);
$helper = new HelperTreeCategories('categories-tree', null, $root_category['id_category']);
$this->content = $helper->setSelectedCategories($selected_cat)->setUseSearch(true)->setUseCheckBox(true)->render();
}
parent::displayAjax();
}