Skip to content

Commit 98bd8be

Browse files
committed
MAGETWO-80828: A solution for Product Repeat Issue after filter on category listing page. #11206
- fix static test
1 parent c2c997f commit 98bd8be

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,8 @@ public function setCollection($collection)
195195
if (($this->getCurrentOrder()) == 'position') {
196196
$this->_collection->addAttributeToSort(
197197
$this->getCurrentOrder(),
198-
$this->getCurrentDirection())->addAttributeToSort('entity_id', $this->getCurrentDirection()
199-
);
198+
$this->getCurrentDirection()
199+
)->addAttributeToSort('entity_id', $this->getCurrentDirection());
200200
} else {
201201
$this->_collection->setOrder($this->getCurrentOrder(), $this->getCurrentDirection());
202202
}

0 commit comments

Comments
 (0)