// little fix about categories with multishop and Helper::renderAdminCategorieTree

This commit is contained in:
vChabot committed 2012-01-10 10:29:53 +00:00
1 parent ad921632ec
commit b35e2db3bf
5 files changed
+32 -7

No files matched your search

+2 -1
View File
@@ -491,10 +491,11 @@ class AdminShopControllerCore extends AdminController
public function initCategoriesAssociation($id_root = 1)
{
$id_shop = Tools::getValue('id_shop');
$shop = new Shop($id_shop);
$selected_cat = Shop::getCategories($id_shop);
if ($this->context->shop() == Shop::CONTEXT_SHOP && Tools::isSubmit('id_shop'))
$root_category = new Category($id_shop);
$root_category = new Category($shop->id_category);
else
$root_category = new Category($id_root);
$root_category = array('id_category' => $root_category->id_category, 'name' => $root_category->name[$this->context->language->id]);