- Issue created by @randy tang
- last update
over 1 year ago 16 pass, 1 fail - 🇮🇳India swatidhurandhar
I was only able to reproduce this issue in Drupal9.5.10, in Drupal10 it is not reproducible. I tested the above patch in D9.5.10, it works fine. I have attached screenshots of admin toolbar sequence both before and after application of patch.
- Status changed to RTBC
over 1 year ago 10:32am 1 August 2023 - Status changed to Needs review
over 1 year ago 10:36am 1 August 2023 - Status changed to Needs work
11 months ago 1:20pm 29 December 2023 - 🇮🇳India Kanchan Bhogade
Hi,
Tested #2 patch on Drupal version 9.5.11 and 10.0
The patch was applied successfully on both versionTesting Steps:
Set up the Drupal and theme
Add Admin toolbar
Go to admin/config/user-interface/admin-toolbar-tools and set the "Maximum number of bundle sub-menus to display" value to 4
Add 6 content types, named as a, b, c, d, e, f
Look at the "content-type" under "structure", and you will find that the displayed content type is not sorted
Apply the shared patch & reverify the results.Test Result:
For D 9.5- The patch was applied successfully, and the ordering of content type broken issue is Fixed
For D 10- The patch was applied successfully, but the issue not fixed.Screenshots are attached for reference
Moving to Needs Work I was able to replicate the issue in both Drupal 10.1.6 and Drupal 9.5.0, but I couldn't successfully apply the provided patch in either of them.
- First commit to issue fork.
- Open on Drupal.org →Core: 9.5.x + Environment: PHP 7.4 & MySQL 8last update
10 months ago Waiting for branch to pass - Status changed to RTBC
10 months ago 12:12pm 17 January 2024 - 🇩🇪Germany marcoliver Neuss, NRW, Germany
Patch worked fine for me as well. Created an issue fork. Marking as RTBC.
- First commit to issue fork.
- Open on Drupal.org →Core: 9.5.x + Environment: PHP 7.4 & MySQL 8last update
8 months ago Waiting for branch to pass - Status changed to Needs review
8 months ago 2:07am 26 March 2024 - 🇦🇺Australia acbramley
Pushed some changes to the MR:
- We need accessCheck(FALSE) since these are built during cache rebuild, access is checked when menu items are rendered
- We don't need to check if weight exists, it'll silently do nothing if it doesn't
- We can improve this further by sorting by label after weight. This helps when for example all vocabularies have the same weight - they'll be queried alphabetically. - 🇮🇳India divya.sejekan
Tested in Drupal 10.2 . Still the ordering is not right. Attached the image
Order displayed is Article , basic a , b ...
Im bit confused here , Should this be alphabetically ordered? - Status changed to Needs work
7 months ago 12:15pm 18 April 2024 - 🇩🇪Germany marcoliver Neuss, NRW, Germany
Also gave the latest commit another look and I share divya.sejekan's confusion.
Ideally, shouldn't the entries in the menu be in the same order the entities would be on the entity list page? A.k.a. using the NodeType sort() function?
- Status changed to Needs review
7 months ago 4:39am 27 April 2024 - 🇦🇺Australia acbramley
- Status changed to Closed: outdated
4 months ago 10:39pm 4 August 2024 - 🇦🇺Australia acbramley
This was fixed in 🐛 Max Bundles not being honored Fixed