Skip to content

Commit 4bfacbb

Browse files
Update Wishlist.php
updating constructor
1 parent 2b3deab commit 4bfacbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Wishlist/Block/Customer/Wishlist.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ public function __construct(
6868
$this->_helperPool = $helperPool;
6969
$this->currentCustomer = $currentCustomer;
7070
$this->postDataHelper = $postDataHelper;
71-
$this->getWishlistItems();
7271
}
7372

7473
/**
@@ -120,6 +119,7 @@ public function getWishlistItems()
120119
*/
121120
protected function _prepareLayout()
122121
{
122+
$this->getWishlistItems();
123123
parent::_prepareLayout();
124124
$this->pageConfig->getTitle()->set(__('My Wish List'));
125125
$this->getChildBlock('wishlist_item_pager')

0 commit comments

Comments
 (0)