Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Updated: Comment #N
Problem/Motivation
When providing local tasks via a derivative, I specified 3 tasks all with 0 weight, in a given order (1-2-3).
The tabs were then rendered 3-1-2.
Proposed resolution
Remaining tasks
Write test, find fix
User interface changes
N/A
API changes
Not anticipated
Comment | File | Size | Author |
---|---|---|---|
#3 | local_tasks-2159471.patch | 2.16 KB | dawehner |
#3 | interdiff.txt | 1.38 KB | dawehner |
#1 | local_tasks-2159471.patch | 800 bytes | dawehner |
Comments
Comment #1
dawehnerI guess we should order that by the way how they were inserted, I fear that internal code in the local task manager breaks that array indexing.
What about doing this?
Comment #3
dawehnerThis fixes the tests and work pretty fine. Set to major as local tasks from all "dynamic" local tasks would be fixed by this.
Comment #4
jhodgdonFixed issue summary, which for some reason had all < > as HTML entities so it didnt' format as tags.
Comment #5
pwolanin CreditAttribution: pwolanin commentedWe should use the localized title as part of the order, like menu links- let's check Drupal 7
Comment #6
pwolanin CreditAttribution: pwolanin commentedOn the other hand - we might want order to be fixed regardless of locale - so we could also use route name to break ties?
Comment #7
dawehnerOr we can just fix the bug and continue on later.
Comment #8
pwolanin CreditAttribution: pwolanin commentedok, let's make the bug go away at least.
Comment #10
alexpottCommitted ce8541b and pushed to 8.x. Thanks!