I added a theme and edited a block's title for that theme. Then I added a new theme, and edited the same block. The title form field appeared pre-filled with the title from the previous theme.

If block settings are unique for each theme, then I expect editing the block for the new theme should have been honoured with an empty title field to begin with. Otherwise this suggests block settings are somehow shared when they are not.

After attempting this with multiple titles in multiple themes, it appeared the new title form field was being pre-filled with the first non-empty cell in the 'blocks' table 'title' row by 'bid' instead of an empty field as it would be.

Comments

nvaken’s picture

I *think* I'm experiencing the same issue.

I've made a theme, with a block in it. I've set the title of the block in that theme to "<none>" to hide it. Then I've added another theme, the title ("Languages", in this case) reappeared. Thinking that the settings of the block would be set to default in the new theme, I went to block settings, switched to the new theme, clicked "Configure" and noticed it's still at "<none>".

Inspecting the URL of the settings page, it does not seem to be respecting the theme selected in the previous page. I would expect the URL to contain the selected theme identifier, but it does not. (Previous page: "admin/build/block/list/scmnew" (which is the overview of blocks page), the block settings page of the block I'm trying to adjust: "admin/build/block/configure/locale/0", which has no "scmnew" in it)

@ Rory, please let me know if you're targeting the same issue here. Thanks!

ronaldmulero’s picture

Reproduced bug in Drupal 6.20

Here's what I did:
1. Created block, set in left-column, switched themes. RESULT: Block Title pre-filled. Actual block display title does not appear in left column.
2. Edited block title field, saved. RESULT: Block title displays as expected in left-column.
3. Switched to new theme. RESULT: Block Title pre-filled. Actual block display title does not appear in left column.
4. Opened block configure screen, but made no edits. Saved. RESULT: Block title displays as expected in left-column.
5. Switched back to original theme. RESULT: New (not original) block title appears in block title field and displays in left-column.

It is indeed a bug.

Status: Active » Closed (outdated)

Automatically closed because Drupal 6 is no longer supported. If the issue verifiably applies to later versions, please reopen with details and update the version.