Skip to content
Snippets Groups Projects
Commit 63f04091 authored by Ron Lucke's avatar Ron Lucke Committed by David Siegfried
Browse files

fix #3666

Closes #3666

Merge request studip/studip!2541
parent a25cddba
No related branches found
No related tags found
No related merge requests found
......@@ -114,7 +114,7 @@ class UnitsCreate extends JsonApiController
$instance = new \Courseware\Instance($struct);
$instance->setRootLayout(self::arrayGet($json, 'data.attributes.settings.root-layout'));
$instance->setRootLayout(self::arrayGet($json, 'data.attributes.settings.root-layout') ?? 'default');
$instance->getUnit()->store();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment