Skip to content

Commit a2bb2af

Browse files
committed
ACP2E-4142: Post-Patch ACP2E-4118: Stock Threshold Change in Admin Causes Negative Salable Quantities and Stock Status Mismatch
1 parent 22f262b commit a2bb2af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/CatalogImportExport/Model/StockItemProcessor.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ public function process(array $stockData, array $importedData): void
3333
{
3434
$importStockData = [];
3535
foreach ($stockData as $sku => $productStockData) {
36-
if (isset($stockData[Product::SCOPE_DEFAULT])) {
37-
$importStockData[$sku] = $productStockData[Product::SCOPE_DEFAULT];
36+
if (isset($stockData[Store::DEFAULT_STORE_ID])) {
37+
$importStockData[$sku] = $productStockData[Store::DEFAULT_STORE_ID];
3838
} else {
3939
$importStockData[$sku] = reset($productStockData);
4040
}

0 commit comments

Comments
 (0)