Skip to content

Commit a87a88d

Browse files
committed
#28563: GraphQL product search does not consider Category Permissions configuration - Pass the context as argument
Address static tests
1 parent d127628 commit a87a88d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

app/code/Magento/ConfigurableProductGraphQl/Model/Variant/Collection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public function addEavAttributes(array $attributeCodes) : void
119119
* Retrieve child products from for passed in parent id.
120120
*
121121
* @param int $id
122-
* @param ContextInterface $context|null
122+
* @param ContextInterface|null $context
123123
* @return array
124124
*/
125125
public function getChildProductsByParentId(int $id, ContextInterface $context = null) : array
@@ -136,7 +136,7 @@ public function getChildProductsByParentId(int $id, ContextInterface $context =
136136
/**
137137
* Fetch all children products from parent id's.
138138
*
139-
* @param ContextInterface $context|null
139+
* @param ContextInterface|null $context
140140
* @return array
141141
*/
142142
private function fetch(ContextInterface $context = null) : array

app/code/Magento/ConfigurableProductGraphQl/composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"php": "~7.3.0||~7.4.0",
77
"magento/module-catalog": "*",
88
"magento/module-configurable-product": "*",
9+
"magento/module-graph-ql": "*",
910
"magento/module-catalog-graph-ql": "*",
1011
"magento/module-quote": "*",
1112
"magento/module-quote-graph-ql": "*",

0 commit comments

Comments
 (0)