Skip to content

Commit be1e905

Browse files
committed
Resolve Warning during search in catalog by multiple custom option values. Warning should not be generated in log issue 23557
1 parent 83f5867 commit be1e905

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ public function apply(\Magento\Framework\App\RequestInterface $request)
6262
->getProductCollection();
6363
$productCollection->addFieldToFilter($attribute->getAttributeCode(), $attributeValue);
6464
$label = $this->getOptionText($attributeValue);
65+
if (is_array($label)) {
66+
$label = implode(',', $label);
67+
}
6568
$this->getLayer()
6669
->getState()
6770
->addFilter($this->_createItem($label, $attributeValue));

0 commit comments

Comments
 (0)