- Status changed to Needs work
about 1 month ago 7:54pm 28 December 2024 - π¬π§United Kingdom steven jones
This needs converting to a merge request, and a test I reckon.
#2893689: Tablesorts not applied to export β fixed an issue where tablesorts from parent displays weren't applied when exporting data. This works well if the export display doesn't have any sorts itself, but if there are then the tablesort effectively does nothing.
For example, I have an export which is ordered by descending updated date, my main display also defaults to this. If I then tablesort by the Title and export that it still has the order by updated date.
If I remove the default sort from the export display then it works fine except if I try and export before doing any tablesort the export isn't sorted at all.
Override existing sorts in buildSortPost
, OR apply the default sort from the parent if no tablesort has been done.
Needs review
1.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
This needs converting to a merge request, and a test I reckon.