View Issue Details

IDProjectCategoryView StatusLast Update
0007178OXID eShop (all versions)1.01. Products (product, categories, manufacturer, promotions etc.)public2020-09-25 11:54
ReporterDayanaLuedecke Assigned To 
Status acknowledgedResolutionopen 
Product Version6.1.5 
Summary0007178: empty Dropdown in CategoryList if Rootcategory has only hidden Subcats
DescriptionNavi generates an empty Dropdown if Rootcategory has only hidden Subcats. Not great in Desktop, but fatal in mobile. In mobile klicking this Category do nothing.
Steps To Reproducemark all Subcats of an Rootcategory as hidden, check Mainnavi in Frontend
Additional Informationyou can fix in CategoryList, Line 485

protected function _ppBuildTree()
        $aTree = [];
        foreach ($this->_aArray as $oCat) {
            $sParentId = $oCat->oxcategories__oxparentid->value;
            if ($sParentId != 'oxrootid') {
----> original if (isset($this->_aArray[$sParentId])) {
----> fix if (isset($this->_aArray[$sParentId]) && ($this->isAdmin() || $oCat->getIsVisible())) {
                    $this->_aArray[$sParentId]->setSubCat($oCat, $oCat->getId());
            } else {
                $aTree[$oCat->getId()] = $oCat;

TagsNo tags attached.
ThemeNot defined
BrowserNot defined
PHP VersionNot defined
Database VersionNot defined



2020-09-25 11:52

administrator   ~0013309

Dear Dayana L├╝decke,

i can reproduce this behavoir in 6.2.2 with Flow and Wave Theme.

Best Regards

QA - SG -