Commit 26a5ca7f authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Prevent sql error when adding block to view and admin public folder doesn't exist yet

Signed-off-by: default avatarRichard Mansfield <>
parent cb9ca512
......@@ -1195,6 +1195,7 @@ class ArtefactTypeFolder extends ArtefactTypeFileBase {
$f = new ArtefactTypeFolder(0, $data);
$folderid = $f->get('id');
return $folderid;
return $folders[0]->id;
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