Skip to content

Commit ede9929

Browse files
committed
AC-1883::[GraphQl] Categories from root categories of other websites are returned.
1 parent 45fe30b commit ede9929

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/code/Magento/CatalogGraphQl/Model/Resolver/Product/ProductCategories.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ public function getCategoryIdsByProduct(int $productId, int $storeId)
6868
->joinInner(['store' => $storeTable], $connection->quoteInto('store.store_id = ?', $storeId), [])
6969
->joinInner(
7070
['store_group' => $storeGroupTable],
71-
$connection->quoteInto('store.group_id = store_group.group_id AND NOT EXISTS
71+
$connection->quoteInto(
72+
'store.group_id = store_group.group_id AND NOT EXISTS
7273
(SELECT 1 FROM store_group WHERE cat_index.category_id IN (store_group.root_category_id)
7374
and cat_index.product_id = ?)',
7475
$productId,

0 commit comments

Comments
 (0)