File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
app/code/Magento/CatalogSearch/Model/Layer/Filter Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -111,12 +111,9 @@ protected function _getItemsData()
111111 $ from = '' ;
112112 }
113113 if ($ to == '* ' ) {
114- $ to = '' ;
114+ $ to = null ;
115115 }
116- $ label = $ this ->renderRangeLabel (
117- empty ($ from ) ? 0 : $ from ,
118- empty ($ to ) ? $ to : $ to
119- );
116+ $ label = $ this ->renderRangeLabel (empty ($ from ) ? 0 : $ from , $ to );
120117 $ value = $ from . '- ' . $ to ;
121118
122119 $ data [] = [
@@ -141,7 +138,7 @@ protected function _getItemsData()
141138 protected function renderRangeLabel ($ fromPrice , $ toPrice )
142139 {
143140 $ formattedFromPrice = $ this ->priceCurrency ->format ($ fromPrice );
144- if ($ toPrice === '' ) {
141+ if ($ toPrice === null ) {
145142 return __ ('%1 and above ' , $ formattedFromPrice );
146143 } else {
147144 if ($ fromPrice != $ toPrice ) {
You can’t perform that action at this time.
0 commit comments