We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c20732c + 1969add commit 150fe7aCopy full SHA for 150fe7a
app/code/Magento/SendFriendGraphQl/Model/Provider/GetVisibleProduct.php
@@ -49,8 +49,9 @@ public function execute(int $productId): ProductInterface
49
$product = $this->productRepository->getById($productId);
50
51
if (!in_array(
52
- $product->getVisibility(),
53
- $this->visibility->getVisibleInCatalogIds()
+ (int) $product->getVisibility(),
+ $this->visibility->getVisibleInSiteIds(),
54
+ true
55
)) {
56
throw new GraphQlNoSuchEntityException(
57
__("The product that was requested doesn't exist. Verify the product and try again.")
0 commit comments