Skip to content

Commit

Permalink
Issue 1236: Fix Integration Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
maghamed committed Jun 3, 2018
1 parent 9679343 commit 7b4f27e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 7b4f27e

Please sign in to comment.