File tree Expand file tree Collapse file tree 4 files changed +19
-8
lines changed
CatalogSearch/Model/Layer/Filter
Paypal/view/adminhtml/web
Ui/view/base/web/js/form/element
lib/internal/Magento/Framework/View/Element/Html/Link Expand file tree Collapse file tree 4 files changed +19
-8
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 ));
Original file line number Diff line number Diff line change 29
29
.paypal-other-header > .admin__collapsible-block > a ::before {content : '' !important ; width : 0 ; height : 0 ; border-color : transparent; border-top-color : # 000 ; border-style : solid; border-width : .8rem .5rem 0 .5rem ; margin-top : 1px ; transition : all .2s linear;}
30
30
.paypal-other-header > .admin__collapsible-block > a .open ::before {border-color : transparent; border-bottom-color : # 000 ; border-width : 0 .5rem .8rem .5rem ;}
31
31
.paypal-other-header > .admin__collapsible-block > a {color : # 007bdb !important ; text-align : right;}
32
- .payments-other-header > .admin__collapsible-block > a {display : inline-block;}
33
- .payments-other-header > .admin__collapsible-block > a ::before {content : '' !important ; width : 0 ; height : 0 ; border-color : transparent; border-top-color : # 000 ; border-style : solid; border-width : .8rem .5rem 0 .5rem ; margin-top : 1px ; transition : all .2s linear;}
34
- .payments-other-header > .admin__collapsible-block > a .open ::before {border-color : transparent; border-bottom-color : # 000 ; border-width : 0 .5rem .8rem .5rem ;}
32
+ .payments-other-header > .admin__collapsible-block > a ,
33
+ .paypal-recommended-header > .admin__collapsible-block > a {display : inline-block;}
34
+ .payments-other-header > .admin__collapsible-block > a ::before ,
35
+ .paypal-recommended-header > .admin__collapsible-block > a ::before {content : '' !important ; width : 0 ; height : 0 ; border-color : transparent; border-top-color : # 000 ; border-style : solid; border-width : .8rem .5rem 0 .5rem ; margin-top : 1px ; transition : all .2s linear;}
36
+ .payments-other-header > .admin__collapsible-block > a .open ::before ,
37
+ .paypal-recommended-header > .admin__collapsible-block > a .open ::before {border-color : transparent; border-bottom-color : # 000 ; border-width : 0 .5rem .8rem .5rem ;}
Original file line number Diff line number Diff line change @@ -461,10 +461,6 @@ define([
461
461
var value = this . filterInputValue ( ) . trim ( ) . toLowerCase ( ) ,
462
462
array = [ ] ;
463
463
464
- if ( value && value . length < 2 ) {
465
- return false ;
466
- }
467
-
468
464
if ( this . searchOptions ) {
469
465
return this . loadOptions ( value ) ;
470
466
}
Original file line number Diff line number Diff line change 23
23
*/
24
24
class Current extends Template
25
25
{
26
+ /**
27
+ * Search redundant /index and / in url
28
+ */
29
+ private const REGEX_INDEX_URL_PATTERN = '/(\/index|(\/))+($|\/$)/ ' ;
30
+
26
31
/**
27
32
* Default path
28
33
*
@@ -87,7 +92,9 @@ private function getMca()
87
92
*/
88
93
public function isCurrent ()
89
94
{
90
- return $ this ->getCurrent () || $ this ->getUrl ($ this ->getPath ()) == $ this ->getUrl ($ this ->getMca ());
95
+ return $ this ->getCurrent () ||
96
+ preg_replace (self ::REGEX_INDEX_URL_PATTERN , '' , $ this ->getUrl ($ this ->getPath ()))
97
+ == preg_replace (self ::REGEX_INDEX_URL_PATTERN , '' , $ this ->getUrl ($ this ->getMca ()));
91
98
}
92
99
93
100
/**
You can’t perform that action at this time.
0 commit comments