Skip to content

Commit 90dc4b7

Browse files
MC-30809: Indexer price calculation for configurable product
1 parent 60b618b commit 90dc4b7

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

dev/tests/integration/framework/Magento/TestFramework/Catalog/Model/Product/Price/GetPriceIndexDataByProductId.php

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,9 @@ public function execute(int $productId, int $groupId, int $websiteId): array
6868

6969
$select = $this->productResource->getConnection()->select()
7070
->from($tableName)
71-
->where('entity_id = ?', $productId);
72-
if (isset($groupId)) {
73-
$select->where('customer_group_id = ?', $groupId);
74-
}
75-
if (isset($websiteId)) {
76-
$select->where('website_id = ?', $websiteId);
77-
}
71+
->where('entity_id = ?', $productId)
72+
->where('customer_group_id = ?', $groupId)
73+
->where('website_id = ?', $websiteId);
7874

7975
return $this->productResource->getConnection()->fetchAll($select);
8076
}

0 commit comments

Comments
 (0)