1 is not a valid badge ID. Try using the autocomplete function (requires javascript).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

shabana.navas’s picture

Status: Active » Postponed (maintainer needs more info)

Can 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.

indyana’s picture

If it helps, I think a couple of the users who posted screenshots had foreign-language sites. Maybe it's an interaction with translations?

Hiller’s picture

Just open roles badges assignment and assign bages. Next open it again and try to save w/o doing anything

shabana.navas’s picture

@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?

Hiller’s picture

Yes. 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

shabana.navas’s picture

Status: Postponed (maintainer needs more info) » Needs review

The patch for this is attached. Please test it out.

shabana.navas’s picture

jlandfried’s picture

Status: Needs review » Reviewed & tested by the community

#7 This fixed the issue for me!

shabana.navas’s picture

Great, this will be committed shortly.

shabana.navas’s picture

Status: Reviewed & tested by the community » Fixed

Committed to 7.x-3.x version.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.