Closed (fixed)
Project:
Node As Block
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Jun 2009 at 06:50 UTC
Updated:
9 Sep 2010 at 07:00 UTC
Hi, how do I get nodeasblock to save to the default theme rather than the currently active theme? I use the administration theme for content editing, which (I think) causes nodeasblock to save it with the administration theme instead of the default theme. What's the best way to fix this?
Comments
Comment #1
dropcube commentedThis is a problem we currently have. alternatively, as administrator, you can go to the block admin page and enable the block in other themes you need to.
I am leaving this issue open to see what others have to say.
Comment #2
dropcube commentedI have committed a fix to this. Blocks are now saved to the default theme rather than currently active theme.
Comment #4
detot commentedThis doesn't work for me.
It still says "The block xxx was assigned to the invalid region %region and has been disabled." when trying to save to a region that only is in my default theme and not in my admin theme.
Tried beta-1 and dev.
Comment #5
drupalninja99 commentedi am having the same issue
Comment #6
dropcube commentedOk, I found the bug. The problem is that _block_rehash in block.module uses the active theme (global $theme_key) to updating the 'blocks' DB table with the blocks currently exported by modules. So, the block is placed in the active theme, and not in the default theme as expected.
http://drupal.org/cvs?commit=412388
Committed this fix, please test.