Skip to content

Commit ee0e7b5

Browse files
MAGETWO-85307: 12468: Sort by Price not working on CatalogSearch Page in Magento 2 #929
- Merge Pull Request magento-engcom/magento2ce#929 from RomaKis/magento2:12468 - Merged commits: 1. 617b57f 2. d518838 3. c0b6034 4. 34b6438
2 parents d865ef1 + 34b6438 commit ee0e7b5

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
@@ -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)