Skip to content

Commit c25c599

Browse files
MC-31763: [Layered Navigation] Yes/No attribute type is not render in layered navigation block
1 parent 555a134 commit c25c599

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/code/Magento/CatalogSearch/Model/Layer/Filter/Attribute.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ public function apply(\Magento\Framework\App\RequestInterface $request)
6767

6868
$labels = [];
6969
foreach ((array) $attributeValue as $value) {
70-
$labels[] = (array) $this->getOptionText($value);
70+
$label = $this->getOptionText($value);
71+
$labels[] = is_array($label) ? $label : [$label];
7172
}
7273
$label = implode(',', array_unique(array_merge(...$labels)));
7374
$this->getLayer()

0 commit comments

Comments
 (0)