ÃÛ¶¹ÊÓÆµ

[PaaS only]{class="badge informative" title="Applies to ÃÛ¶¹ÊÓÆµ Commerce on Cloud projects (ÃÛ¶¹ÊÓÆµ-managed PaaS infrastructure) and on-premises projects only."}

ACSD-58108: SQL errors occur in order grid custom module extension due to missing join table name

The ACSD-58108 patch fixes the issue where a missing join table name in the order grid custom module extension causes SQL errors when filtering certain columns. This patch is available when the Quality Patches Tool (QPT) 1.1.69 is installed. The patch ID is ACSD-58108. Please note that this issue is scheduled to be fixed in ÃÛ¶¹ÊÓÆµ Commerce 2.5.0.

Affected products and versions

The patch is created for ÃÛ¶¹ÊÓÆµ Commerce version:

  • ÃÛ¶¹ÊÓÆµ Commerce (all deployment methods) 2.4.6

Compatible with ÃÛ¶¹ÊÓÆµ Commerce versions:

  • ÃÛ¶¹ÊÓÆµ Commerce (all deployment methods) 2.4.6 - 2.4.7-p6
NOTE
The patch might become applicable to other versions with new Quality Patches Tool releases. To check if the patch is compatible with your ÃÛ¶¹ÊÓÆµ 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 missing join table name in the original fetching table causes SQL errors in the order grid when using a custom module extension. This issue occurs because the addFilterToMap function does not work for certain columns after joining the sales_order_item table, resulting in errors while filtering.

Steps to reproduce:

  1. Install a 2.4-develop instance.
  2. Create a new order.
  3. Install a custom module with an SQL extension.
  4. Navigate to Admin > Sales > Orders.
  5. Apply the Purchase Date filter and wait for the result.
  6. Apply Product SKU filter.

Expected results:

Filtering orders in the order grid works without errors.

Actual results:

An error occurs when applying filters in the order grid.

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