Skip to content

Commit 0790081

Browse files
committed
MAGETWO-44584: Error "The stock item for Product in option is not valid." when adding configurable product on second website
1 parent 0dbcab7 commit 0790081

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ public function getStockItem($productId, $websiteId)
148148
if (!isset($this->stockItems[$key])) {
149149
$criteria = $this->stockItemCriteriaFactory->create();
150150
$criteria->setProductsFilter($productId);
151-
//$criteria->setWebsiteFilter($websiteId);
152151
$collection = $this->stockItemRepository->getList($criteria);
153152
$stockItem = current($collection->getItems());
154153
if ($stockItem && $stockItem->getItemId()) {

0 commit comments

Comments
 (0)