diff --git a/vendor/magento/module-wishlist/Model/ResourceModel/Item/Collection.php b/vendor/magento/module-wishlist/Model/ResourceModel/Item/Collection.php index 92592e8417c..d0b4ffc1609 100644 --- a/vendor/magento/module-wishlist/Model/ResourceModel/Item/Collection.php +++ b/vendor/magento/module-wishlist/Model/ResourceModel/Item/Collection.php @@ -392,7 +392,11 @@ class Collection extends \Magento\Framework\Model\ResourceModel\Db\Collection\Ab $availableProductTypes = $this->salesConfig->getAvailableProductTypes(); $this->getSelect()->join( ['cat_prod' => $this->getTable('catalog_product_entity')], - $this->getConnection()->quoteInto('cat_prod.type_id IN (?)', $availableProductTypes), + $this->getConnection() + ->quoteInto( + "cat_prod.type_id IN (?) AND {$mainTableName}.product_id = cat_prod.entity_id", + $availableProductTypes + ), [] ); }