Skip to content
Snippets Groups Projects
Commit 0278a59f authored by Ere Maijala's avatar Ere Maijala Committed by Demian Katz
Browse files

Hierarchical facet bug fix

- Take also childrens' childrens into account when setting hasAppliedChildren for hierarchical facets so that the facets are properly opened also for levels deeper than 2.
parent 83e97e68
No related merge requests found
...@@ -252,7 +252,7 @@ class HierarchicalFacetHelper ...@@ -252,7 +252,7 @@ class HierarchicalFacetHelper
foreach ($list as &$item) { foreach ($list as &$item) {
$item['hasAppliedChildren'] = !empty($item['children']) $item['hasAppliedChildren'] = !empty($item['children'])
&& $this->updateAppliedChildrenStatus($item['children']); && $this->updateAppliedChildrenStatus($item['children']);
if ($item['isApplied']) { if ($item['isApplied'] || $item['hasAppliedChildren']) {
$result = true; $result = true;
} }
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment