We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8aa1d46 + 0fbe1f9 commit 4ae0f74Copy full SHA for 4ae0f74
app/code/Magento/Wishlist/Model/Wishlist/Data/WishlistItemFactory.php
@@ -24,7 +24,7 @@ class WishlistItemFactory
24
public function create(array $data): WishlistItem
25
{
26
return new WishlistItem(
27
- $data['quantity'],
+ $data['quantity'] ?? 0,
28
$data['sku'] ?? null,
29
$data['parent_sku'] ?? null,
30
isset($data['wishlist_item_id']) ? (int) $data['wishlist_item_id'] : null,
0 commit comments