Skip to content

Commit 1efdc39

Browse files
RachanaRachana
authored andcommitted
BUG#AC-6666:Can't use fragments for 'related_products', 'upsell_products' or 'crosssell_products'
1 parent caea1c1 commit 1efdc39

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

app/code/Magento/CatalogGraphQl/Model/AttributesJoiner.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,9 @@ public function getQueryData($query, $resolveInfo): array
106106
$selectedFields[] = $field->name->value;
107107
}
108108
}
109-
$data=[];
110-
$data['selectedFields']=$selectedFields;
111-
$data['fragmentFields']=$fragmentFields;
109+
$data = [];
110+
$data['selectedFields'] = $selectedFields;
111+
$data['fragmentFields'] = $fragmentFields;
112112
return $data;
113113
}
114114

dev/tests/api-functional/testsuite/Magento/GraphQl/Catalog/ProductFragmentTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class ProductFragmentTest extends GraphQlAbstract
1919
* @magentoApiDataFixture Magento/Catalog/_files/product_simple.php
2020
* @throws Exception
2121
*/
22-
public function testSimpleProductNamedFragment()
22+
public function testSimpleProductNamedFragment(): void
2323
{
2424
$sku = 'simple';
2525
$name = 'Simple Product';
@@ -58,7 +58,7 @@ public function testSimpleProductNamedFragment()
5858
* @magentoApiDataFixture Magento/Catalog/_files/product_simple.php
5959
* @throws Exception
6060
*/
61-
public function testSimpleProductInlineFragment()
61+
public function testSimpleProductInlineFragment(): void
6262
{
6363
$sku = 'simple';
6464
$name = 'Simple Product';

0 commit comments

Comments
 (0)