Skip to content

Commit 8dd7bc1

Browse files
committed
ACP2E-4294: Restricted Category Products Still Counted in Wishlist After Customer Group Update
1 parent 9ce2243 commit 8dd7bc1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

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

8282
/**
83+
* Adminhtml sales
84+
*
8385
* @var \Magento\Sales\Helper\Admin
8486
*/
8587
protected $_adminhtmlSales = null;
@@ -349,7 +351,7 @@ protected function _assignProducts()
349351
/** @var \Magento\Wishlist\Model\Item $item */
350352
foreach ($this as $item) {
351353
$product = $productCollection->getItemById($item->getProductId());
352-
if ($product && !$product->getIsHidden()) {
354+
if ($product) {
353355
if ($checkInStock && !$product->isInStock()) {
354356
$this->removeItemByKey($item->getId());
355357
} else {

0 commit comments

Comments
 (0)