We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c5c339 commit 034a086Copy full SHA for 034a086
app/code/Magento/CatalogInventory/Model/Plugin/AroundProductRepositorySave.php
@@ -64,10 +64,6 @@ public function aroundSave(
64
$stockItem->setProductId($result->getId());
65
$stockItem->setWebsiteId($this->storeManager->getStore($result->getStoreId())->getWebsiteId());
66
67
- // TODO: might need to handle a *new* -v- *update* for the stockItem
68
- // ... StockRegistry: $this->stockItemRepository->save
69
- // TODO: ensure this is correct logic for PUT/update and POST/create
70
-
71
$this->stockRegistry->updateStockItemBySku($result->getSku(), $stockItem);
72
73
// since we just saved a portion of the product, force a reload of it before returning it
0 commit comments