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 996bdaf + 4ae0f74 commit 772886eCopy full SHA for 772886e
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