From 8b95e9f2ca2e4075a9d6d5edb6b6c5c426fd5794 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Gaillard?= Date: Fri, 17 May 2013 17:10:11 +0200 Subject: [PATCH] [-] BO: Root category should be the shop category and not the higher category with multiple root and without multishop #PSCFV-8860 --- classes/Category.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/classes/Category.php b/classes/Category.php index ac211811c..1c63ff592 100644 --- a/classes/Category.php +++ b/classes/Category.php @@ -684,8 +684,7 @@ class CategoryCore extends ObjectModel else return new Category($shop->getCategory(), $id_lang); $is_more_than_one_root_category = count(Category::getCategoriesWithoutParent()) > 1; - if ((!Shop::isFeatureActive() && $is_more_than_one_root_category) || - Shop::isFeatureActive() && $is_more_than_one_root_category && Shop::getContext() != Shop::CONTEXT_SHOP) + if (Shop::isFeatureActive() && $is_more_than_one_root_category && Shop::getContext() != Shop::CONTEXT_SHOP) $category = Category::getTopCategory($id_lang); else $category = new Category($shop->getCategory(), $id_lang);