Commit cc21b7cd authored by Nigel McNie's avatar Nigel McNie
Browse files

Make sure that the correct blocktype library is included when saving all...

Make sure that the correct blocktype library is included when saving all artefacts in the view. This prevents warnings in the logs and incorrect generation of the list of artefacts in a view.
parent f1840111
......@@ -415,6 +415,7 @@ class BlockInstance {
public function rebuild_artefact_list() {
db_begin();
delete_records('view_artefact', 'block', $this->id);
safe_require('blocktype', $this->get('blocktype'));
if (!$artefacts = call_static_method(
generate_class_name('blocktype', $this->get('blocktype')),
'get_artefacts', $this)) {
......
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