Skip to content

Commit 11b3161

Browse files
committed
MAGETWO-87447: Fixing of Problem with updating stock item qty and stock status magento#13494
- Merge Pull Request magento#13494 from comwrap/magento2:stock-fix - Merged commits: 1. 3bef986
2 parents dbcb0cd + 3bef986 commit 11b3161

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/CatalogInventory/Observer/ProcessInventoryDataObserver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ private function prepareQuantityAndStockStatus(StockItemInterface $stockItem, ar
9797
) {
9898
unset($quantityAndStockStatus['is_in_stock']);
9999
}
100-
if (isset($quantityAndStockStatus['qty'])
100+
if (array_key_exists('qty', $quantityAndStockStatus)
101101
&& $stockItem->getQty() == $quantityAndStockStatus['qty']
102102
) {
103103
unset($quantityAndStockStatus['qty']);

0 commit comments

Comments
 (0)