Skip to content

Commit 24a07bd

Browse files
committed
MAGETWO-60246: [Backport] - [Github]Magento 2.1.1 Problem with change currency #6746 - for 2.1.x
1 parent 7cc5fd4 commit 24a07bd

File tree

1 file changed

+3
-3
lines changed
  • app/code/Magento/CatalogSearch/Model/Layer/Filter

1 file changed

+3
-3
lines changed

app/code/Magento/CatalogSearch/Model/Layer/Filter/Price.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ public function getCurrencyRate()
174174
*/
175175
protected function _renderRangeLabel($fromPrice, $toPrice)
176176
{
177-
$fromPrice *= $this->getCurrencyRate();
177+
$fromPrice *= $this->getCurrencyRate();
178178
if ($toPrice) {
179179
$toPrice *= $this->getCurrencyRate();
180180
}
@@ -216,7 +216,7 @@ protected function _getItemsData()
216216
if (strpos($key, '_') === false) {
217217
continue;
218218
}
219-
$data[] = $this->prepareData($key, $count, $data);
219+
$data[] = $this->prepareData($key, $count);
220220
}
221221
}
222222

@@ -267,7 +267,7 @@ private function prepareData($key, $count)
267267
}
268268
$label = $this->_renderRangeLabel(
269269
empty($from) ? 0 : $from,
270-
empty($to) ? $to : $to
270+
$to
271271
);
272272
$value = $from . '-' . $to . $this->dataProvider->getAdditionalRequestData();
273273

0 commit comments

Comments
 (0)