Skip to content

Commit c8de3a1

Browse files
committed
ACP2E-1388, removed bundle product type check
1 parent 03b88be commit c8de3a1

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

app/code/Magento/Bundle/Model/Plugin/ProductPriceIndexModifier.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,18 +74,12 @@ private function isWithinDynamicPriceBundle(string $priceTableName, int $product
7474
$connection = $this->resourceConnection->getConnection($this->connectionName);
7575
$select = $connection->select();
7676
$select->from(['selection' => 'catalog_product_bundle_selection'], 'selection_id');
77-
$select->joinInner(
78-
['entity' => 'catalog_product_entity'],
79-
implode(' AND ', ['selection.parent_product_id = entity.row_id']),
80-
null
81-
);
8277
$select->joinInner(
8378
['price' => $priceTableName],
8479
implode(' AND ', ['price.entity_id = selection.product_id']),
8580
null
8681
);
8782
$select->where('selection.product_id = ?', $productId);
88-
$select->where('entity.type_id = ?', \Magento\Catalog\Model\Product\Type::TYPE_BUNDLE);
8983
$select->where('price.tax_class_id = ?', \Magento\Bundle\Model\Product\Price::PRICE_TYPE_DYNAMIC);
9084

9185
return (int)$connection->fetchOne($select) != 0;

0 commit comments

Comments
 (0)