Closed (outdated)
Project:
MultiBlock
Version:
6.x-1.5
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Dec 2015 at 17:10 UTC
Updated:
9 Jan 2017 at 10:04 UTC
Jump to comment: Most recent
In the following code in multiblock.module (lines 76-96):
function multiblock_call_block($delta, $op, $edit) {
$result = db_query("SELECT module, orig_delta, delta, multi_settings FROM {multiblock} WHERE delta='%s'", $delta);
if ($block_info = db_fetch_object($result)) {
// If this block is multiblock enabled, send it the delta of the block we're using.
if ($block_info->multi_settings == 1 ) {
$edit['multiblock_delta'] = array(
'#type' => 'value',
'#value' => $block_info->delta,
);
}
$edit['multiblock_delta'] = $delta;
$block = module_invoke($block_info->module, 'block', $op, $block_info->orig_delta, $edit);
// if ($op == 'view') {
// $block['orig_module'] = $block_info->module;
// $block['orig_delta'] = $block_info->orig_delta;
// }
return $block;
}
// No such multiblock, shouldn't ever happen.
return;
}
line 86 ($edit['multiblock_delta'] = $delta;) overwrites possible result of the conditional statement right above.
Delta for multiblock-enabled blocks is then not taken from multiblock table.
This also forces the delta to be retrieved using $edit['multiblock_delta'] and not $edit['multiblock_delta']['#value'] as it used to be in the previous release therefore making this version of the module not back compatible.
Comments
Comment #2
intrafusionDrupal 6 is no longer support