Skip to content

Commit 4ad81e1

Browse files
author
Oleksii Korshenko
authored
MAGETWO-85307: 12468: Sort by Price not working on CatalogSearch Page in Magento 2 #929
2 parents dcf1d7f + ee0e7b5 commit 4ad81e1

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,7 @@ public function getWidgetOptionsJson(array $customOptions = [])
689689
'limit' => ToolbarModel::LIMIT_PARAM_NAME,
690690
'modeDefault' => $defaultMode,
691691
'directionDefault' => $this->_direction ?: ProductList::DEFAULT_SORT_DIRECTION,
692-
'orderDefault' => $this->_productListHelper->getDefaultSortField(),
692+
'orderDefault' => $this->getOrderField(),
693693
'limitDefault' => $this->_productListHelper->getDefaultLimitPerPageValue($defaultMode),
694694
'url' => $this->getPagerUrl(),
695695
];

0 commit comments

Comments
 (0)