In the new mail templates components that can be found on the system dashboard is a language filter
None of the sorting worked - either by clicking on the column title or by selecting from the dropdown
it is easy to test because the up/down arrows never change when you click on any of the three sortable column heading or any of the two types in the dropdown
I did try to fix it some time ago but failed #27325 and forgot to re-open the issue when that was closed
The problem is that the non-standard mthods in this component make using the standard methods for sorting unusable
Labels |
Added:
?
|
@saumyasarkar11 It is processed in TemplatesModel model https://github.com/joomla/joomla-cms/blob/4.0-dev/administrator/components/com_mails/src/Model/TemplatesModel.php#L24 . I believe there is a problem with filter_fields https://github.com/joomla/joomla-cms/blob/4.0-dev/administrator/components/com_mails/src/Model/TemplatesModel.php#L38 . It needs to contains all fields which can be used to order the the result. Try to look at it to see if you could figure out.
Actually, looking more at the code, look like the sorting is completely ignored for some reasons, this method https://github.com/joomla/joomla-cms/blob/4.0-dev/administrator/components/com_mails/src/Model/TemplatesModel.php#L115 has no sorting code added
@brianteeman I think your PR #27325 is good. We just need to add some code for sorting handling to getListQuery of Templates model. Maybe you can re-open your original PR and we try to add some missing code there?
Re-opened and conflicts fixed as requested.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2021-03-14 08:13:54 |
Closed_By | ⇒ | brianteeman |
Can I know the file through which this sorting operates?