File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
app/code/Magento/CatalogSearch/Model/Layer/Filter Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 33 * Copyright © Magento, Inc. All rights reserved.
44 * See COPYING.txt for license details.
55 */
6+ declare (strict_types=1 );
7+
68namespace Magento \CatalogSearch \Model \Layer \Filter ;
79
810use Magento \Catalog \Model \Layer \Filter \AbstractFilter ;
@@ -62,6 +64,9 @@ public function apply(\Magento\Framework\App\RequestInterface $request)
6264 ->getProductCollection ();
6365 $ productCollection ->addFieldToFilter ($ attribute ->getAttributeCode (), $ attributeValue );
6466 $ label = $ this ->getOptionText ($ attributeValue );
67+ if (is_array ($ label )) {
68+ $ label = implode (', ' , $ label );
69+ }
6570 $ this ->getLayer ()
6671 ->getState ()
6772 ->addFilter ($ this ->_createItem ($ label , $ attributeValue ));
You can’t perform that action at this time.
0 commit comments