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
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:
- Install a 2.4-develop instance.
- Create a new order.
- Install a custom module with an SQL extension.
- Navigate to Admin > Sales > Orders.
- Apply the Purchase Date filter and wait for the result.
- 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:
- ÃÛ¶¹ÊÓÆµ Commerce or Magento Open Source on-premises: Quality Patches Tool > Usage in the Quality Patches Tool guide.
- ÃÛ¶¹ÊÓÆµ 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.