Skip to content

Commit 906daf6

Browse files
Redundant round brackets removed from Magento 2.2.0 layer navigation return no products when 2 filters selected.
1 parent 1d998f9 commit 906daf6

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Catalog/Block/Product/ProductList

1 file changed

+1
-1
lines changed

app/code/Magento/Catalog/Block/Product/ProductList/Toolbar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ public function setCollection($collection)
192192
$this->_collection->setPageSize($limit);
193193
}
194194
if ($this->getCurrentOrder()) {
195-
if (($this->getCurrentOrder()) == 'position') {
195+
if ($this->getCurrentOrder() == 'position') {
196196
$this->_collection->addAttributeToSort(
197197
$this->getCurrentOrder(),
198198
$this->getCurrentDirection()

0 commit comments

Comments
 (0)