View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0007178 | OXID eShop (all versions) | 1.01. Products (product, categories, manufacturer, promotions etc.) | public | 2020-09-25 10:24 | 2025-01-29 15:55 |
Reporter | DayanaLuedecke | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | confirmed | Resolution | open | ||
Product Version | 6.1.5 | ||||
Summary | 0007178: empty Dropdown in CategoryList if Rootcategory has only hidden Subcats | ||||
Description | Navi 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 Reproduce | mark all Subcats of an Rootcategory as hidden, check Mainnavi in Frontend | ||||
Additional Information | you 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; } } $this->assign($aTree); } | ||||
Tags | No tags attached. | ||||
Theme | Not defined | ||||
Browser | Not defined | ||||
PHP Version | Not defined | ||||
Database Version | Not defined | ||||