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

dropcube’s picture

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

dropcube’s picture

Status: Active » Fixed

I have committed a fix to this. Blocks are now saved to the default theme rather than currently active theme.

Status: Fixed » Closed (fixed)

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

detot’s picture

Status: Closed (fixed) » Active

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

drupalninja99’s picture

i am having the same issue

dropcube’s picture

Status: Active » Fixed

Ok, 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.

Status: Fixed » Closed (fixed)

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