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()
111
111
$ from = '' ;
112
112
}
113
113
if ($ to == '* ' ) {
114
- $ to = '' ;
114
+ $ to = null ;
115
115
}
116
- $ label = $ this ->renderRangeLabel (
117
- empty ($ from ) ? 0 : $ from ,
118
- empty ($ to ) ? 0 : $ to
119
- );
116
+ $ label = $ this ->renderRangeLabel (empty ($ from ) ? 0 : $ from , $ to );
120
117
$ value = $ from . '- ' . $ to ;
121
118
122
119
$ data [] = [
@@ -141,7 +138,7 @@ protected function _getItemsData()
141
138
protected function renderRangeLabel ($ fromPrice , $ toPrice )
142
139
{
143
140
$ formattedFromPrice = $ this ->priceCurrency ->format ($ fromPrice );
144
- if ($ toPrice === '' ) {
141
+ if ($ toPrice === null ) {
145
142
return __ ('%1 and above ' , $ formattedFromPrice );
146
143
} else {
147
144
if ($ fromPrice != $ toPrice ) {
You can’t perform that action at this time.
0 commit comments