diff options
| author | Ron Lucke <lucke@elan-ev.de> | 2022-03-30 14:11:19 +0000 |
|---|---|---|
| committer | Ron Lucke <lucke@elan-ev.de> | 2022-03-30 14:11:19 +0000 |
| commit | dcccfab09fd1b4bf1de50c8f3c014f672fa8b7c9 (patch) | |
| tree | e418f16e8853eea805d579a861a4e09f5c482d22 /app/controllers/course/courseware.php | |
| parent | 694cf29e5fe1b98e3c41baae8da745dc35a0af6e (diff) | |
fix #764
Diffstat (limited to 'app/controllers/course/courseware.php')
| -rwxr-xr-x | app/controllers/course/courseware.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/course/courseware.php b/app/controllers/course/courseware.php index 2d14e2e..9ef9661 100755 --- a/app/controllers/course/courseware.php +++ b/app/controllers/course/courseware.php @@ -50,7 +50,8 @@ class Course_CoursewareController extends AuthenticatedController if (!$course->courseware) { // create initial courseware dataset - $struct = StructuralElement::createEmptyCourseware(Context::getId(), 'course'); + $instance = StructuralElement::createEmptyCourseware(Context::getId(), 'course'); + $struct = $instance->getRoot(); } $this->entry_element_id = $course->courseware->id; |
