Skip to content

Commit

Permalink
ENGCOM-2130: [Forwardport] Fixes updating wishlist item if an item ob…
Browse files Browse the repository at this point in the history
…ject is passed instead its id. #16391
  • Loading branch information
Stanislav Idolov committed Jul 4, 2018
1 parent 0b41730 commit 0c3e7f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/Magento/Wishlist/Model/Wishlist.php
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ public function loadByCustomerId($customerId, $create = false)
public function getName()
{
$name = $this->_getData('name');
if (!strlen($name)) {
if ($name === null || !strlen($name)) {
return $this->_wishlistData->getDefaultWishlistName();
}
return $name;
Expand Down

0 comments on commit 0c3e7f2

Please sign in to comment.