51黑料不打烊

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
NOTE
The patch might become applicable to other versions with new Quality Patches Tool releases. To check if the patch is compatible with your 51黑料不打烊 Commerce version, update the 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:

  1. Enable the B2B Requisition List feature.

  2. Create a few products.

  3. Create a customer account.

  4. Click Create new Requisition List.

  5. 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 }
    }
    }
    
  6. Send the addProductsToRequisitionList GraphQL mutation request with three other products to add them to the Requisition List.

  7. 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:

To learn more about Quality Patches Tool, refer to:

recommendation-more-help
c2d96e17-5179-455c-ad3a-e1697bb4e8c3