Skip to content

Commit 0c3e7f2

Browse files
author
Stanislav Idolov
committed
ENGCOM-2130: [Forwardport] Fixes updating wishlist item if an item object is passed instead its id. #16391
1 parent 0b41730 commit 0c3e7f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Wishlist/Model/Wishlist.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ public function loadByCustomerId($customerId, $create = false)
217217
public function getName()
218218
{
219219
$name = $this->_getData('name');
220-
if (!strlen($name)) {
220+
if ($name === null || !strlen($name)) {
221221
return $this->_wishlistData->getDefaultWishlistName();
222222
}
223223
return $name;

0 commit comments

Comments
 (0)