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 attached patch modifies the "User Badges User" view to fix two things in the display of the badge list on a user's Badges tab:
- A Role Badge would get displayed twice. I changed the view to use "User Badges Assignments: User" as the relationship instead of "Entity Reference: Referencing entity".
- When users are not allowed to reorder badges, the badges would get ordered by their names rather than their default weights. I believe this is the same issue that was reported in #2404539. To fix this I added the default weight as the second sorting method.
Comment | File | Size | Author |
---|---|---|---|
#1 | user_badges-views_fixes-2456067-1.patch | 3.45 KB | strangeways |
Comments
Comment #1
strangeways CreditAttribution: strangeways commentedHere's the patch.