ACSD-51739: An error is returned when the structure_id is requested in a CompanyTeam GraphQL request
An error is returned when the structure_id is requested in a CompanyTeam GraphQL request. Quality patch ACSD-51739 for magento/module-company-graph-ql applies to Magento Open Source and Adobe Commerce 2.4.6 to 2.4.7-p2.
- Categories
- B2B, GraphQL
- Components
- magento/module-company-graph-ql
- Origin
- adobe-commerce-support
- Since QPT
- 1.1.34
Issue
An error is returned when the structure_id is requested in a CompanyTeam GraphQL request.
Steps to reproduce
1. Go to Stores > Configuration > General > B2B Features, and set Enable Company to Yes. 1. Create a company along with a company admin user. 1. Create a new customer (customer1), and assign the company (created above) to this customer. 1. On the frontend, log in as the company admin user. 1. Create a company team, and assign customer1 to the team using drag and drop. 1. Run the following company GraphQl query, which includes CompanyTeam with structure_id: query{ company { id name structure { items { id parent_id entity { __typename ... on Customer { firstname lastname email structure_id } ... on CompanyTeam { id name structure_id } } } } } } 1. Check the GraphQL response.
Adobe's page lists 2.4.6 - 2.4.7 as compatible; the versions below are resolved from the current QPT constraints and are the ones the tool will offer.
Install
Install the Quality Patches Tool with composer require magento/quality-patches, apply the prerequisites listed for all files applicable to your distribution and version first, then run vendor/bin/magento-patches apply ACSD-51739. On Cloud, add ACSD-51739 under stage.build.QUALITY_PATCHES in .magento.env.yaml.
For cweagans/composer-patches, choose a compatible version below and download the bundle. Copy its ACSD-51739/ folder into patches/composer/, merge composer.patches.json into composer.json, then run composer install. Bundle prerequisites the same way and list them first. Paths are relative to each package root, using the default -p1 level. Prefer local files when configuring composer-patches; a remote URL can change.
Patch files and compatible versions
magento/magento2-b2b-base >=1.3.5 <1.4.3
- Magento Open Source
- —
- Adobe Commerce
- 2.4.7-p2, 2.4.7-p1, 2.4.7, 2.4.6-p7, 2.4.6-p6, 2.4.6-p5, 2.4.6-p4, 2.4.6-p3, 2.4.6-p2, 2.4.6-p1, 2.4.6
- Patch file
- patches/commerce/ACSD-51739_1.3.5.patch
- vendor/magento/module-company-graph-ql/Model/Company/Structure.php
