Skip to content

Commit 67b9b6a

Browse files
committed
MC-37718: Grouped product remains In Stock On Mass Update
1 parent 8bf6e8f commit 67b9b6a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

app/code/Magento/CatalogInventory/Plugin/MassUpdateProductAttribute.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class MassUpdateProductAttribute
5858
/**
5959
* @var ParentItemProcessorInterface[]
6060
*/
61-
private $parentItemProcessors;
61+
private $parentItemProcessorPool;
6262

6363
/**
6464
* @var ProductRepositoryInterface
@@ -73,7 +73,7 @@ class MassUpdateProductAttribute
7373
* @param \Magento\Catalog\Helper\Product\Edit\Action\Attribute $attributeHelper
7474
* @param \Magento\Framework\Message\ManagerInterface $messageManager
7575
* @param ProductRepositoryInterface $productRepository
76-
* @param ParentItemProcessorInterface[] $parentItemProcessors
76+
* @param ParentItemProcessorInterface[] $parentItemProcessorPool
7777
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
7878
*/
7979
public function __construct(
@@ -85,7 +85,7 @@ public function __construct(
8585
\Magento\Catalog\Helper\Product\Edit\Action\Attribute $attributeHelper,
8686
\Magento\Framework\Message\ManagerInterface $messageManager,
8787
ProductRepositoryInterface $productRepository,
88-
array $parentItemProcessors = []
88+
array $parentItemProcessorPool = []
8989
) {
9090
$this->stockIndexerProcessor = $stockIndexerProcessor;
9191
$this->dataObjectHelper = $dataObjectHelper;
@@ -95,7 +95,7 @@ public function __construct(
9595
$this->attributeHelper = $attributeHelper;
9696
$this->messageManager = $messageManager;
9797
$this->productRepository = $productRepository;
98-
$this->parentItemProcessors = $parentItemProcessors;
98+
$this->parentItemProcessorPool = $parentItemProcessorPool;
9999
}
100100

101101
/**
@@ -188,7 +188,7 @@ private function updateInventoryInProducts($productIds, $websiteId, $inventoryDa
188188
*/
189189
private function processParents(ProductInterface $product): void
190190
{
191-
foreach ($this->parentItemProcessors as $processor) {
191+
foreach ($this->parentItemProcessorPool as $processor) {
192192
$processor->process($product);
193193
}
194194
}

0 commit comments

Comments
 (0)