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 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 ));
Original file line number Diff line number Diff line change 2929.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;}
3030.paypal-other-header > .admin__collapsible-block > a .open ::before {border-color : transparent; border-bottom-color : # 000 ; border-width : 0 .5rem .8rem .5rem ;}
3131.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([
461461 var value = this . filterInputValue ( ) . trim ( ) . toLowerCase ( ) ,
462462 array = [ ] ;
463463
464- if ( value && value . length < 2 ) {
465- return false ;
466- }
467-
468464 if ( this . searchOptions ) {
469465 return this . loadOptions ( value ) ;
470466 }
Original file line number Diff line number Diff line change 2323 */
2424class Current extends Template
2525{
26+ /**
27+ * Search redundant /index and / in url
28+ */
29+ private const REGEX_INDEX_URL_PATTERN = '/(\/index|(\/))+($|\/$)/ ' ;
30+
2631 /**
2732 * Default path
2833 *
@@ -87,7 +92,9 @@ private function getMca()
8792 */
8893 public function isCurrent ()
8994 {
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 ()));
9198 }
9299
93100 /**
You can’t perform that action at this time.
0 commit comments