Skip to content

Commit b48da95

Browse files
author
Daniel Siepmann
committed
[BUGFIX] Fixed menu generation for facets.
* Added '/' as separator to menu entry prefix to prevent wrong assignments. Before 2-144/27/28 would be assigned as child of 1-144/2, not only 2-144/27.
1 parent b2e7fb0 commit b48da95

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Classes/Facet/HierarchicalFacetHelper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public function getMenuStructure($content, array $configuration) {
8989
protected function getSubMenu(array $facetOptions, $menuName, $level) {
9090
$menu = array();
9191

92-
$subMenuEntryPrefix = $level . '-' . $menuName;
92+
$subMenuEntryPrefix = $level . '-' . $menuName . '/';
9393

9494
foreach ($facetOptions as $facetOptionKey => $facetOption) {
9595
// find the sub menu items for the current menu
@@ -143,4 +143,4 @@ protected function getFacetOptionLabel($facetOptionKey, $facetOptionResultCount)
143143
include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/solr/Classes/Facet/HierarchicalFacetHelper.php']);
144144
}
145145

146-
?>
146+
?>

0 commit comments

Comments
 (0)