Commit 80c1d7bd authored by Richard Mansfield's avatar Richard Mansfield
Browse files

When copying views, don't scrape html looking for artefacts to include

parent 1fa4cc1c
......@@ -848,7 +848,7 @@ class BlockInstance {
$newblock->commit();
return true;
}
$artefactids = PluginBlockType::get_artefacts($this);
$artefactids = get_column('view_artefact', 'artefact', 'block', $this->get('id'));
if (!empty($artefactids)
&& $copytype == 'full') {
// Copy artefacts & put the new artefact ids into the new block.
......
Supports Markdown
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