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 3
3
* Copyright © Magento, Inc. All rights reserved.
4
4
* See COPYING.txt for license details.
5
5
*/
6
+ declare (strict_types=1 );
7
+
6
8
namespace Magento \CatalogSearch \Model \Layer \Filter ;
7
9
8
10
use Magento \Catalog \Model \Layer \Filter \AbstractFilter ;
@@ -62,6 +64,9 @@ public function apply(\Magento\Framework\App\RequestInterface $request)
62
64
->getProductCollection ();
63
65
$ productCollection ->addFieldToFilter ($ attribute ->getAttributeCode (), $ attributeValue );
64
66
$ label = $ this ->getOptionText ($ attributeValue );
67
+ if (is_array ($ label )) {
68
+ $ label = implode (', ' , $ label );
69
+ }
65
70
$ this ->getLayer ()
66
71
->getState ()
67
72
->addFilter ($ this ->_createItem ($ label , $ attributeValue ));
You can’t perform that action at this time.
0 commit comments