[development] Block Visibility Bug

Josh Koenig joshk at chapterthreellc.com
Thu Nov 8 16:38:57 UTC 2007


(apologies if this is a dupe post; I've moved to a new computers and  
am still working to restore all my mail settings)

FYI -

Found and patched a bug in 5.x (checking HEAD now) that was causing  
block configuration forms to loose visibility settings in some cases:

http://drupal.org/node/115596

Basically Drupal has a lovely feature that allows different themes to  
have different sets of blocks visible, with different page-specific  
visibility settings. Unfortunately, the form that's rendered when you  
are pointed to admin/build/block/configure/<module>/<delta> just takes  
whatever set of theme-specific visibility settings the database serves  
up first.

This is particularly annoying if you're using an admin theme and mysql  
decides those records come before your front-facing theme. It gets  
even worse if you're trying to do clever stuff using multiple themes  
on a site.

Anyway, my fix is simple: add another argument to the config url/link  
so that when you are editing/saving block visibility settings, you're  
sure to be doing so for the theme in question.

cheers
-josh

------------------------------------------
Josh Koenig, Partner
http://www.chapterthreellc.com
AOL IM: chap3josh
1-888-822-4273

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20071108/6dc5b625/attachment.htm 


More information about the development mailing list