Skip to content

Commit

Permalink
Merge pull request #22 from riha112/2907
Browse files Browse the repository at this point in the history
#2907 Wishlist undefined bug
  • Loading branch information
carinadues authored Jul 19, 2021
2 parents bf00c1d + 4d2c11b commit bc0189c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Model/Resolver/WishlistItemsResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,11 @@ public function resolve(
foreach ($wishlistItems as $wishlistItem) {
$wishlistItemId = $wishlistItem->getId();
$wishlistProductId = $itemProductIds[$wishlistItemId];

if (!isset($wishlistProducts[$wishlistProductId])) {
continue;
}

$itemProduct = $wishlistProducts[$wishlistProductId];
$type = $itemProduct['type_id'];
$qty = $wishlistItem->getData('qty');
Expand Down

0 comments on commit bc0189c

Please sign in to comment.