Skip to content

Commit 0717e6b

Browse files
committed
ENGCOM-2128: Wishlist update item issue (delete strict_types and refactor method getName in wishlist model)
1 parent 014e011 commit 0717e6b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6-
declare(strict_types=1);
76

87
namespace Magento\Wishlist\Model;
98

@@ -217,9 +216,11 @@ public function loadByCustomerId($customerId, $create = false)
217216
public function getName()
218217
{
219218
$name = $this->_getData('name');
220-
if (!strlen($name)) {
219+
220+
if ($name === null || !strlen($name)) {
221221
return $this->_wishlistData->getDefaultWishlistName();
222222
}
223+
223224
return $name;
224225
}
225226

0 commit comments

Comments
 (0)