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.
I was testing the token functionality in 1.6 when I ran across another bug (I think). In admin/user/user_badges/settings there is a setting for Default badge link URL. If you save something in that field but then go back and delete it and save, the change will not save.
-
Steps to reproduce.
- enter a default badge link URL
- save
- delete the default badge link URL
- save
The bug is that the original setting stays and cannot be deleted. I suppose this is not huge because I just went back to individual badge URLs and they always have a link. If I didn't want a link however, I would have to go into the database to delete that setting.
Comments
Comment #1
benlotter CreditAttribution: benlotter commentedIn case this helps, the specific setting I was entering into the default badge link URL was as follows:
badges#[userbadge-name]
Comment #2
NancyDruYou are absolutely correct. Whoever coded that, did it on purpose. I can't see that it's important. If you want a quick test, go to line 698 in user_badges.admin.inc and comment out the
if
and ending bracket.Comment #3
benlotter CreditAttribution: benlotter commented@NancyDru your fix worked perfectly thanks.
Comment #4
NancyDruOk, I will commit a variation on that.
Comment #5
NancyDruCommitted to 6.x-1.x-dev