Skip to content

Commit aa0dfbf

Browse files
committed
ACP2E-1388:Bundle Products Not Combining Simple Product Prices When Set to Dynamic Pricing
address static analysis errors
1 parent 00aacb3 commit aa0dfbf

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,7 @@ public function __construct(
6161
MetadataPool $metadataPool,
6262
?ProductRepositoryInterface $productRepository = null,
6363
string $connectionName = 'indexer'
64-
)
65-
{
64+
) {
6665
$this->stockConfiguration = $stockConfiguration;
6766
$this->resourceConnection = $resourceConnection;
6867
$this->metadataPool = $metadataPool;
@@ -130,7 +129,7 @@ private function filterProductsFromDynamicPriceBundle(string $priceTableName, ar
130129
}
131130

132131
$filteredProducts = [];
133-
foreach($bundleProducts as $bundle) {
132+
foreach ($bundleProducts as $bundle) {
134133
$bundleProduct = $this->productRepository->getById($bundle['bundle_id']);
135134
if ($bundleProduct->getPriceType() != Price::PRICE_TYPE_DYNAMIC) {
136135
$filteredProducts[] = $bundle['child_product_id'];

0 commit comments

Comments
 (0)