Commit 4341cb09 authored by Francois Marier's avatar Francois Marier Committed by Gerrit Code Review
Browse files

Merge "journal is not accessible in reference copy"

parents a96dba17 6abc6047
......@@ -232,6 +232,24 @@ class View {
}
$view->commit();
$blocks = get_records_array('block_instance', 'view', $view->get('id'));
if ($blocks) {
foreach ($blocks as $b) {
$configdata = unserialize($b->configdata);
if (!isset($configdata['artefactid'])) {
continue;
}
if (!isset($configdata['copytype']) || $configdata['copytype'] !== 'reference') {
continue;
}
$va = new StdClass;
$va->view = $b->view;
$va->artefact = $configdata['artefactid'];
$va->block = $b->id;
insert_record('view_artefact', $va);
}
}
db_commit();
return array(
......
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