Merge pull request #1121 from dlage/patch-1
[-] BO : fixed bug loading wrong root category in AdminCategoriesController
This commit is contained in:
@@ -105,7 +105,7 @@ class AdminCategoriesControllerCore extends AdminController
|
||||
$this->_category = new Category($id_category);
|
||||
else
|
||||
{
|
||||
if (Shop::isFeatureActive() && Shop::getContext() == Shop::CONTEXT_SHOP)
|
||||
if (Shop::getContext() == Shop::CONTEXT_SHOP)
|
||||
$this->_category = new Category($this->context->shop->id_category);
|
||||
elseif (count(Category::getCategoriesWithoutParent()) > 1 && Configuration::get('PS_MULTISHOP_FEATURE_ACTIVE') && count(Shop::getShops(true, null, true)) != 1)
|
||||
$this->_category = Category::getTopCategory();
|
||||
|
||||
Reference in New Issue
Block a user