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.
The display of the vocabs depended on the time the terms were tagged to the node. Steps to reproduce:
1. Create a group, group content and two vocabularies related to the group content type(i checked this on a auto complete form type)
2. Create node(AKA "Node a") and tag term from vocab A
3. Create node(AKA "Node b") and tag term from vocab B
4. Tag term from vocab B to node a
5. Tag term from vocab A to node b
You can see that the vocab don't appear in the same order.
Comment | File | Size | Author |
---|---|---|---|
#3 | 1959726-og-vocab-sort-weight-3.patch | 1.4 KB | amitaibu |
#2 | vocabulary-order-display-correctly-1959726-2.patch | 1.28 KB | RoySegall |
#1 | vocabulary-order-display-correctly-1959726-1.patch | 1.11 KB | RoySegall |
Comments
Comment #1
RoySegall CreditAttribution: RoySegall commentedThe patch indeed invoke in the present of the terms but the OrderBy function don't affect the way the vocabulary presented. Attaching the patch so other people could leverage the work on the patch.
Comment #2
RoySegall CreditAttribution: RoySegall commentedI replaced the query alter for ordering with array that will be sort by the terms vocabulary weight.
Comment #3
amitaibuPatch checks also the VID if weight is equal.
Comment #4
amitaibuCommitted, thanks,
Comment #5.0
(not verified) CreditAttribution: commentedUpdated issue summary.