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:

  1. 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".
  2. 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.
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

strangeways’s picture

Here's the patch.