diff --git a/app/code/Magento/Wishlist/Model/ResourceModel/Item/Collection.php b/app/code/Magento/Wishlist/Model/ResourceModel/Item/Collection.php index ccac8f07ddf444bbcf88c3a887b0132fa4477c38..f45bdce082e554d9bbd0fafe502213a362a59c60 100644 --- a/app/code/Magento/Wishlist/Model/ResourceModel/Item/Collection.php +++ b/app/code/Magento/Wishlist/Model/ResourceModel/Item/Collection.php @@ -276,9 +276,7 @@ class Collection extends \Magento\Framework\Model\ResourceModel\Db\Collection\Ab 'WISHLIST:' . __METHOD__, ['group' => 'WISHLIST', 'method' => __METHOD__] ); - $productIds = []; - $this->_productIds = array_merge($this->_productIds, array_keys($productIds)); /** @var \Magento\Catalog\Model\ResourceModel\Product\Collection $productCollection */ $productCollection = $this->_productCollectionFactory->create(); @@ -289,7 +287,7 @@ class Collection extends \Magento\Framework\Model\ResourceModel\Db\Collection\Ab $productCollection->addPriceData() ->addTaxPercents() ->addIdFilter($this->_productIds) - ->addAttributeToSelect('name') + ->addAttributeToSelect(['name', 'visibility']) ->addOptionsToResult() ->addUrlRewrite();