On the node edit screen, only current theme regions are available. So in my case I use rubik as backend theme, also for node editting, which causes $theme_key to be 'rubik'.

around line 150 in .admin.inc:

  $custom_theme = isset($theme) ? $theme : variable_get('theme_default', 'garland');
  init_theme(); 
  $block_regions = system_region_list($theme_key) + array(BLOCK_REGION_NONE => '<'. t('none') .'>');

I'm not sure init_theme(); works as expected.
theme_default is retrieved correctly as the active 'frontend' theme, that's allright.
But after init_theme, $theme_key is still 'rubik'.

CommentFileSizeAuthor
#1 theme.patch1.23 KBgloaguen

Comments

gloaguen’s picture

Status: Active » Needs review
StatusFileSize
new1.23 KB

I experienced the same bug when using a different administration theme then the front-end. I have created a patch for this. Now you can use a different administration theme and front-end theme. This works perfect now !

askibinski’s picture

Status: Needs review » Reviewed & tested by the community

Patch works. Thanks!

gloaguen’s picture

Assigned: Unassigned » gloaguen
Status: Reviewed & tested by the community » Closed (fixed)

This is now fixed in version 6.x-1.1

  • Commit 29782a4 on master, 7.x-2.x by gloaguen:
    Issue #1048888 by askibinski: Fix theme selection
    
    
  • Commit 01ba898 on master, 7.x-2.x by gloaguen:
    Issue #1048888 by gloaguen: reset previous value theme