Skip to content

Commit 639e289

Browse files
committed
MC-42243: Sorting by price is incorrect if price for shared catalog is 0
1 parent b58e944 commit 639e289

File tree

1 file changed

+1
-0
lines changed
  • app/code/Magento/AdvancedSearch/Model/ResourceModel

1 file changed

+1
-0
lines changed

app/code/Magento/AdvancedSearch/Model/ResourceModel/Index.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ protected function _getCatalogProductPriceData($productIds = null)
107107
$this->tableResolver->resolve('catalog_product_index_price', $dimensions),
108108
['entity_id', 'customer_group_id', 'website_id', 'min_price']
109109
);
110+
$select->where('min_price IS NOT NULL');
110111
if ($productIds) {
111112
$select->where('entity_id IN (?)', $productIds);
112113
}

0 commit comments

Comments
 (0)