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.
1 is not a valid badge ID. Try using the autocomplete function (requires javascript).
Comment | File | Size | Author |
---|---|---|---|
#7 | user_badges-badge_ID_not_valid_translation_issue-2027873-7.patch | 1.66 KB | shabana.navas |
bug.jpg | 69.87 KB | wnemail |
Comments
Comment #1
shabana.navas CreditAttribution: shabana.navas commentedCan anyone else replicate this issue? I tried with the same badge name and everything, but still couldn't reproduce it. Anymore info on this would be appreciated.
Comment #2
indyana CreditAttribution: indyana commentedIf it helps, I think a couple of the users who posted screenshots had foreign-language sites. Maybe it's an interaction with translations?
Comment #3
Hiller CreditAttribution: Hiller commentedJust open roles badges assignment and assign bages. Next open it again and try to save w/o doing anything
Comment #4
shabana.navas CreditAttribution: shabana.navas commented@Hiller, I have tried to do as you claim, I went to admin/config/people/user_badges/roles, assigned a badge to the administrator role, clicked 'Save role badges'. It saved the roles. Then, hit 'Save role badges' again without doing anything, it saved the roles again, no problem. So I am not able to re-create this problem.
As indyana mentioned, is this is a foreign-language site?
Comment #5
Hiller CreditAttribution: Hiller commentedYes. as far as i can see it checks for /\(' . t('Badge ID') . ' (\d+)\)/ substring but in my case Badge ID is translated when i select value from autocomplete and not it equals to (Badge ID) when i open form again
Comment #6
shabana.navas CreditAttribution: shabana.navas commentedThe patch for this is attached. Please test it out.
Comment #7
shabana.navas CreditAttribution: shabana.navas commentedOops forgot to attach.
Comment #8
jlandfried CreditAttribution: jlandfried commented#7 This fixed the issue for me!
Comment #9
shabana.navas CreditAttribution: shabana.navas commentedGreat, this will be committed shortly.
Comment #10
shabana.navas CreditAttribution: shabana.navas commentedCommitted to 7.x-3.x version.