Skip to content

Commit 5b8f88c

Browse files
author
Alex Bomko
committed
MAGETWO-44980: Out of stock Product is displayed in Storefront Catalog
1 parent e0ff5ff commit 5b8f88c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/CatalogInventory/Model/StockIndex.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ public function updateProductStockStatus($productId, $websiteId)
120120
$status = $item->getIsInStock();
121121
$qty = $item->getQty();
122122
}
123-
$this->processChildren($productId, $websiteId, $qty, $status);
124-
$this->processParents($productId, $websiteId);
123+
$this->processChildren($productId, $item->getWebsiteId(), $qty, $status);
124+
$this->processParents($productId, $item->getWebsiteId());
125125
}
126126

127127
/**

0 commit comments

Comments
 (0)