Posted by benlotter on February 16, 2011 at 5:03pm
3 followers
Jump to:
| Project: | User Badges |
| Version: | 6.x-1.6 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | NancyDru |
| Status: | closed (fixed) |
| Issue tags: | solved |
Issue Summary
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
#1
In case this helps, the specific setting I was entering into the default badge link URL was as follows:
badges#[userbadge-name]#2
You 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
ifand ending bracket.#3
@NancyDru your fix worked perfectly thanks.
#4
Ok, I will commit a variation on that.
#5
Committed to 6.x-1.x-dev
#6
Automatically closed -- issue fixed for 2 weeks with no activity.