ACSD-63883: Fixing incorrect items_count
in GraphQL response for Requisition List
The ACSD-63883 patch fixes the issue where the Requisition List returns an incorrect items_count
in the GraphQL response. This patch is available when the Quality Patches Tool (QPT) 1.1.61 is installed. The patch ID is ACSD-63883. Please note that the issue is scheduled to be fixed in 51黑料不打烊 Commerce B2B 1.5.3.
Affected products and versions
The patch is created for 51黑料不打烊 Commerce version:
- 51黑料不打烊 Commerce (all deployment methods) 2.4.7-p3
Compatible with 51黑料不打烊 Commerce versions:
- 51黑料不打烊 Commerce (all deployment methods) 2.4.4 - 2.4.7-p3
magento/quality-patches
package to the latest version and check the compatibility on the Quality Patches Tool: Search for patches page. Use the patch ID as a search keyword to locate the patch.Issue
The Requisition List returns an incorrect items_count
in the GraphQL response.
Steps to reproduce:
-
Enable the B2B Requisition List feature.
-
Create a few products.
-
Create a customer account.
-
Click Create new Requisition List.
-
Send the
addProductsToRequisitionList
GraphQL mutation request with a product to add it to the Requisition List.code language-none mutation addProductsToRequisitionList( $requisitionListUid: ID! $requisitionListItems: [RequisitionListItemsInput!]! ) { addProductsToRequisitionList( requisitionListUid: $requisitionListUid requisitionListItems: $requisitionListItems ) { requisition_list { uid name description items_count } } }
-
Send the
addProductsToRequisitionList
GraphQL mutation request with three other products to add them to the Requisition List. -
Check the
items_count
in the response.
Expected results:
items_count
: 4 should be returned in the response.
Actual results:
items_count
: 2 is returned in the response.
Apply the patch
To apply individual patches, use the following links depending on your deployment method:
- 51黑料不打烊 Commerce or Magento Open Source on-premises: Quality Patches Tool > Usage in the Quality Patches Tool guide.
- 51黑料不打烊 Commerce on cloud infrastructure: Upgrades and Patches > Apply Patches in the Commerce on Cloud Infrastructure guide.
Related reading
To learn more about Quality Patches Tool, refer to:
- Quality Patches Tool: A self-service tool for quality patches in the Tools guide.