RTC bug PR-4.4-dev Pending

User tests: Successful: Unsuccessful:

avatar HLeithner
HLeithner
23 Apr 2024

Pull Request for Issue #40605 .

Summary of Changes

Order is now using the right values for displaying directory structure for templates in the backend.
This could happen on posix filesystems because the natural order is the file creation and not the alphabetical order.

Testing Instructions

Check if your directories and files are sorted in the corrected order

Actual result BEFORE applying this Pull Request

The order was only for directories correct

Expected result AFTER applying this Pull Request

Sorting happens in the model and not longer in the view for directories and files.

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

Additional

image

avatar HLeithner HLeithner - open - 23 Apr 2024
avatar HLeithner HLeithner - change - 23 Apr 2024
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 23 Apr 2024
Category Administration com_templates
avatar HLeithner HLeithner - change - 23 Apr 2024
Labels Added: PR-4.4-dev
avatar dautrich
dautrich - comment - 23 Apr 2024

@HLeithner
The fix is for J4, isn't it? Can I apply the patch to J5.1 as well?

avatar brianteeman
brianteeman - comment - 23 Apr 2024

Is the image a before or after. If after then it is showing the folders in the tree not being in alphabetical order

avatar HLeithner
HLeithner - comment - 23 Apr 2024

I think so, I didn't see much changes since 4.4 in 5.1

avatar dautrich dautrich - test_item - 23 Apr 2024 - Tested successfully
avatar dautrich
dautrich - comment - 23 Apr 2024

I have tested this item ✅ successfully on f3a8732

I successfully tested the PR on a J5.1.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/43335.

avatar HLeithner
HLeithner - comment - 23 Apr 2024

Is the image a before or after. If after then it is showing the folders in the tree not being in alphabetical order

correct php fooled me and the over complicated php code didn't make it better. I updated the code and moved from uasort to uksort. Now it works as expected.

Here the image from joomla 5.1:
image

avatar brianteeman
brianteeman - comment - 23 Apr 2024

Now I am really confused. The original PR used uasort and did not work with cassiopeia. Yet @dautrich says it does work with the j51 template

avatar HLeithner
HLeithner - comment - 23 Apr 2024

Now I am really confused. The original PR used uasort and did not work with cassiopeia. Yet @dautrich says it does work with the j51 template

it partly works with cassiopeia as you pointed out based on the image (media folder -> images shouldn't be on the last place, btw. this information in you comment would have saved me 10 minutes...). so his test is wrong.

755588b 23 Apr 2024 avatar HLeithner CS
avatar dautrich
dautrich - comment - 23 Apr 2024

Template Skylar

grafik

avatar brianteeman
brianteeman - comment - 23 Apr 2024

Please review #25792

avatar HLeithner
HLeithner - comment - 23 Apr 2024

Please review #25792

done

avatar dautrich
dautrich - comment - 29 Apr 2024

@HLeithner
Do you want me to re-test this?

avatar HLeithner
HLeithner - comment - 29 Apr 2024

@HLeithner Do you want me to re-test this?

Plz

avatar dautrich dautrich - test_item - 29 Apr 2024 - Tested successfully
avatar dautrich
dautrich - comment - 29 Apr 2024

I have tested this item ✅ successfully on 4edaa4c


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/43335.

avatar dautrich
dautrich - comment - 29 Apr 2024

43335 - 2024-04-29

@HLeithner
Would you like me to test this patch on J5.1.0 as well, or will you provide a separate PR for J5.1.0?

avatar HLeithner
HLeithner - comment - 29 Apr 2024

43335 - 2024-04-29

@HLeithner Would you like me to test this patch on J5.1.0 as well, or will you provide a separate PR for J5.1.0?

Will be upmerged so no test/PR for 5.1 needed thankd

avatar viocassel viocassel - test_item - 2 May 2024 - Tested successfully
avatar viocassel
viocassel - comment - 2 May 2024

I have tested this item ✅ successfully on 4edaa4c


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/43335.

avatar Quy Quy - change - 2 May 2024
Status Pending Ready to Commit
avatar Quy
Quy - comment - 2 May 2024

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/43335.

avatar Quy Quy - change - 2 May 2024
Labels Added: RTC bug
avatar MacJoom MacJoom - change - 8 May 2024
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2024-05-08 07:36:38
Closed_By MacJoom
avatar MacJoom MacJoom - close - 8 May 2024
avatar MacJoom MacJoom - merge - 8 May 2024
avatar MacJoom
MacJoom - comment - 8 May 2024

Thank you!

Add a Comment

Login with GitHub to post a comment