Skip to content

Commit

Permalink
#2907 Wishlist undefined bug
Browse files Browse the repository at this point in the history
  • Loading branch information
riha112 committed Jul 16, 2021
1 parent bf00c1d commit 4d2c11b
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 4d2c11b

Please sign in to comment.