We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb80c2b commit 7257d41Copy full SHA for 7257d41
app/code/Magento/Catalog/Helper/Product/ProductList.php
@@ -101,7 +101,7 @@ public function getDefaultViewMode($options = [])
101
public function getDefaultSortField()
102
{
103
$currentCategory = $this->coreRegistry->registry('current_category');
104
- if($currentCategory){
+ if ($currentCategory) {
105
$currentCategorySortBy = $currentCategory->getDefaultSortBy();
106
return $currentCategorySortBy;
107
}
0 commit comments