You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the MODX browser the files don't get correctly sorted by the "last modified" date, if the system setting manager_date_format doesn't have the default value.
Step to reproduce
Change the system setting manager_date_format to d.m.Y
Open the MODX browser (menu "Media" -> "Media Browser")
Change the dropdown "Sort By:" to "Last Modfied"
Verify that the order of the files is incorrect
Environment
MODX 3.1.2-pl
Cause
The processor Browser/Directory/GetFiles used to return the timestamp of a file (in the field "lastmod"). The formatting of the timestamps was done in JS. The sorting of the files was also done in JS using the timestamp.
With #16604 the processor now already returns the formatted time string. The sorting is done in JS using this already formatted strings.
The text was updated successfully, but these errors were encountered:
I'm taking a look at this. The file browser is pretty lacking in usability regardless—even if the sorting was working correctly, there's no way to easily see in the list (or grid) view what the sort direction is, and there's no control over that sort direction (of any column). It might take a little while to untangle...
UPDATE: I have a quick fix for the basic issue I'll post later today. Will look into better UI sorting control separately.
Bug report
Summary
In the MODX browser the files don't get correctly sorted by the "last modified" date, if the system setting
manager_date_format
doesn't have the default value.Step to reproduce
manager_date_format
tod.m.Y
Environment
MODX 3.1.2-pl
Cause
The processor
Browser/Directory/GetFiles
used to return the timestamp of a file (in the field "lastmod"). The formatting of the timestamps was done in JS. The sorting of the files was also done in JS using the timestamp.With #16604 the processor now already returns the formatted time string. The sorting is done in JS using this already formatted strings.
The text was updated successfully, but these errors were encountered: