Closed (fixed)
Project:
Domain Blocks
Version:
6.x-1.1
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Sep 2009 at 13:30 UTC
Updated:
6 Apr 2010 at 20:10 UTC
Jump to comment: Most recent file
Comments
Comment #1
nonsieActually this is by design at the moment. A patch is welcome but it would need to keep current functionality eg. automatically adding new blocks vs manually adding new blocks to the domain_blocks table should be a configuration option.
Comment #2
voxpelli commentedEven though this happens by design the intention is not by design - this should be considered an undesired behavior and ultimately something that needs to be corrected as soon as possible :)
I'm reopening it and marking it as critical - because it's really bothering me - I'm always forgetting to do the extra save.
Comment #3
nonsiePatches welcome;) I probably won't get to it for a while.
Comment #4
RoboPhred commentedThe real issue is that new blocks have no domain selected, but by design the block should be available to all domains if no domains are selected. This is shown by the fact that while the block starts out as showing up for no nodes, yet submitting the block configuration screen without changing anything causes the block to show up for all domains.
I will work on a patch for this.
Comment #5
RoboPhred commentedUnfortunately I cannot work on this. However, I did some looking into this, and it doesn't appear there are any hooks to react to the enabling or installing of blocks. With this case, the change can only be done in the sql query alter hook where the block's domain is applied; it needs to either be reworked to treat none as all, or trigger a block save event to populate the table entries.
Comment #6
RoboPhred commentedComment #7
nonsieHere's a patch that will enable a block on all domains (domain_site grant) on block_admin_display_form submit if it has no record in domain_blocks table.
The downside is that is you have a block in a region other than BLOCK_REGION_NONE it will show up on all sites. There is no way to disable it besides moving it into disabled blocks.
Comment #8
manfer commentedComment #9
nonsieFix released as part of 6.x-1.2