[development] Block visibility settings bug

Josh Koenig joshk at chapterthreellc.com
Thu Nov 8 03:54:45 UTC 2007


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



More information about the development mailing list