From 7b4f27e40c654c5e35e0ed38a7b1be56f5709299 Mon Sep 17 00:00:00 2001 From: Igor Miniailo Date: Sun, 3 Jun 2018 19:50:18 +0300 Subject: [PATCH] Issue 1236: Fix Integration Tests --- .../InventorySales/Model/PlaceReservationsForSalesEvent.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/code/Magento/InventorySales/Model/PlaceReservationsForSalesEvent.php b/app/code/Magento/InventorySales/Model/PlaceReservationsForSalesEvent.php index f92ac6918273f..6ad61658c6738 100644 --- a/app/code/Magento/InventorySales/Model/PlaceReservationsForSalesEvent.php +++ b/app/code/Magento/InventorySales/Model/PlaceReservationsForSalesEvent.php @@ -91,7 +91,8 @@ public function execute(array $items, SalesChannelInterface $salesChannel, Sales foreach ($items as $item) { $currentSku = $item->getSku(); $skuNotExistInCatalog = !isset($productTypes[$currentSku]); - if ($skuNotExistInCatalog || $this->isSourceItemManagementAllowedForProductType->execute($currentSku)) { + if ($skuNotExistInCatalog || + $this->isSourceItemManagementAllowedForProductType->execute($productTypes[$currentSku])) { $reservations[] = $this->reservationBuilder ->setSku($item->getSku()) ->setQuantity((float)$item->getQuantity())