Commit 53e26f61 authored by Nigel McNie's avatar Nigel McNie
Browse files

Migrate folder blockinstances to the new folder blocktype.

parent 28ce5c9e
......@@ -644,6 +644,15 @@ function upgrade_template_convert_block_to_blockinstance($block, $view) {
));
return $bi;
}
else if ($block->artefacttype == 'folder') {
$bi = new BlockInstance(0, array(
'title' => '',
'blocktype' => 'folder',
'configdata' => serialize(array('artefactid' => $block->artefact)),
'view' => $view->id,
));
return $bi;
}
log_info("Created a placeholder blockinstance for:");
log_info($block);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment