Add the ability to extend the list of sortable fields $sortableFields in src/Core/Grid/Query/* final classes #30787
Labels
CO
Category: Core
Customer
Component: Which BO section is concerned
Feature
Type: New Feature
Hook
Needs Specs
Status: issue needs to be specified
Prerequisites
Is your feature request related to a problem?
There are two hooks
actionOrderGridQueryBuilderModifier
actionOrderGridDefinitionModifier
which can be used to add new columns to the BO lists. In the list of customers or list of orders as example. But there is no sorting option for the added fields and without the ability to expand it. Because the fields are defined by the local variable into the src/Core/Grid/Query/*QueryBuilder.php::applySorting() function. Classes (for example: CustomerQueryBuilder, OrderQueryBuilder) have prefix final so they are closed from decorating or extending.
This means we can add additional fields to the BO lists, but we cannot sort the lists by them.
Describe the solution you'd like
I see two solutions.
Alternatives you've considered
No response
Additional context
No response
Do you plan to work on this feature?
The text was updated successfully, but these errors were encountered: