From 98bd8bed70499dd690ab850a75a0b866b0854ee7 Mon Sep 17 00:00:00 2001 From: Eugene Tulika Date: Thu, 12 Oct 2017 13:05:39 +0300 Subject: [PATCH] MAGETWO-80828: A solution for Product Repeat Issue after filter on category listing page. #11206 - fix static test --- .../Magento/Catalog/Block/Product/ProductList/Toolbar.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/code/Magento/Catalog/Block/Product/ProductList/Toolbar.php b/app/code/Magento/Catalog/Block/Product/ProductList/Toolbar.php index a1f962c07df6..46080ab5c333 100644 --- a/app/code/Magento/Catalog/Block/Product/ProductList/Toolbar.php +++ b/app/code/Magento/Catalog/Block/Product/ProductList/Toolbar.php @@ -195,8 +195,8 @@ public function setCollection($collection) if (($this->getCurrentOrder()) == 'position') { $this->_collection->addAttributeToSort( $this->getCurrentOrder(), - $this->getCurrentDirection())->addAttributeToSort('entity_id', $this->getCurrentDirection() - ); + $this->getCurrentDirection() + )->addAttributeToSort('entity_id', $this->getCurrentDirection()); } else { $this->_collection->setOrder($this->getCurrentOrder(), $this->getCurrentDirection()); }