Can't unset the last blocktheme
marcp - January 23, 2008 - 22:23
| Project: | Block Theme |
| Version: | 5.x-1.1 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
To reproduce:
1. Set the blocktheme for one block
2. Notice that everything works fine
3. Unset the blocktheme for that block by selecting <-- None -->
4. Notice that the blocktheme doesn't get removed
The problem is in blocktheme_set() where $new_val is checked before setting the blocktheme variable. When the last blocktheme is removed, $new_val is empty, so this fails to remove the last setting.

#1
Thanks for this! I've posted it to CVS.
#2
#3
Automatically closed -- issue fixed for two weeks with no activity.