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

JacobSingh - January 24, 2008 - 05:12
Status:active» patch (to be ported)

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

#2

JacobSingh - February 14, 2008 - 08:02
Status:patch (to be ported)» fixed

#3

Anonymous (not verified) - February 28, 2008 - 08:16
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.