Project:Block Theme
Version:5.x-1.1
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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.

Comments

#1

Status:active» patch (to be ported)

Thanks for this! I've posted it to CVS.

#2

Status:patch (to be ported)» fixed

#3

Status:fixed» closed (fixed)

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

nobody click here