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 4b585d4 commit a9a3c19Copy full SHA for a9a3c19
app/code/Magento/CatalogInventory/Model/Stock/StockItemRepository.php
@@ -276,6 +276,7 @@ private function changeIsInStockIfNecessary(StockItemInterface $stockItem)
276
&& $isInStock
277
&& !$stockItem->getIsInStock()
278
&& $stockItem->getOrigData(\Magento\CatalogInventory\Api\Data\StockItemInterface::QTY) == 0
279
+ && $stockItem->getOrigData(\Magento\CatalogInventory\Api\Data\StockItemInterface::QTY) !== null
280
) {
281
$stockItem->setIsInStock(true)->setStockStatusChangedAutomaticallyFlag(true);
282
}
0 commit comments