Skip to content

Commit ba8475c

Browse files
committed
Merge remote-tracking branch 'origin/ACP2E-4294' into PR_2025_11_07_muntianu
2 parents dc7f669 + 23bad23 commit ba8475c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

app/code/Magento/Wishlist/Model/ResourceModel/Item/Collection.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,6 @@ class Collection extends \Magento\Framework\Model\ResourceModel\Db\Collection\Ab
8080
protected $_isProductNameJoined = false;
8181

8282
/**
83-
* Adminhtml sales
84-
*
8583
* @var \Magento\Sales\Helper\Admin
8684
*/
8785
protected $_adminhtmlSales = null;
@@ -351,7 +349,7 @@ protected function _assignProducts()
351349
/** @var \Magento\Wishlist\Model\Item $item */
352350
foreach ($this as $item) {
353351
$product = $productCollection->getItemById($item->getProductId());
354-
if ($product) {
352+
if ($product && !$product->getIsHidden()) {
355353
if ($checkInStock && !$product->isInStock()) {
356354
$this->removeItemByKey($item->getId());
357355
} else {

0 commit comments

Comments
 (0)