File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
app/code/Magento/Wishlist/Model/ResourceModel/Item Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments