[-] BO : FixBug #PSCSX-40 categories unchanged after select a new home category
This commit is contained in:
@@ -57,7 +57,7 @@
|
|||||||
},
|
},
|
||||||
function(res)
|
function(res)
|
||||||
{
|
{
|
||||||
$('#categories-treeview').parent().html(res);
|
$('#categories-tree').parent().parent().html(res);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -203,8 +203,9 @@ class AdminShopControllerCore extends AdminController
|
|||||||
$children = Category::getChildren($root_category['id_category'], $this->context->language->id);
|
$children = Category::getChildren($root_category['id_category'], $this->context->language->id);
|
||||||
foreach ($children as $child)
|
foreach ($children as $child)
|
||||||
$selected_cat[] = $child['id_category'];
|
$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();
|
parent::displayAjax();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user