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