Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@smg6511
Copy link
Collaborator

@smg6511 smg6511 commented Sep 18, 2025

Ensures system settings' modx_browser_default_sort is properly applied when 'lastmod' is chosen.

What does it do?

Accounts for recently-implemented lastmod_raw key in the browser logic; allows users who have their default sort set to lastmod to not have to make any changes for that setting to work.

Why is it needed?

When system setting is set to lastmod, browser views were still being sorted by name on initial load.

How to test

Change your modx_browser_default_sort to each of the three variations allowed and ensure sorting appears as expected in each of the browser contexts:

  1. Main browser: Click on the Media Browser link in the main menu
  2. RTE browser: Click to add an image in your content's RTE
  3. File/Image TV within a Resource: Click to find file

Related issue(s)/PR(s)

In response to request in Issue #16731

Ensures system settings' default sort is applied when 'lastmod' is chosen.
@smg6511 smg6511 added type-frontend Issues related to UI/UX issues, mostly about styles and frontend implementations on JavaScript. pr/review-needed Pull request requires review and testing. labels Sep 18, 2025
@smg6511
Copy link
Collaborator Author

smg6511 commented Sep 18, 2025

@jenswittmann - Hey, since you pointed out the issue fixed here, can you pull down this PR to test it sometime soon? Thx!

@jenswittmann
Copy link
Contributor

jenswittmann commented Sep 18, 2025

Hej @smg6511,
thank you very much for fixing the bug so quickly! I tested and it works 👍🏽

@smg6511
Copy link
Collaborator Author

smg6511 commented Sep 18, 2025

@jenswittmann - You're most welcome! If you would, give the PR an official review approval so this can get merged in sooner than later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr/review-needed Pull request requires review and testing. type-frontend Issues related to UI/UX issues, mostly about styles and frontend implementations on JavaScript.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants