Skip to content
Snippets Groups Projects
Commit 6205adb5 authored by Ron Lucke's avatar Ron Lucke
Browse files

fix #509

parent 0fd56511
No related branches found
No related tags found
No related merge requests found
......@@ -34,6 +34,12 @@ class Contents_CoursewareController extends AuthenticatedController
{
Navigation::activateItem('/contents/courseware/projects');
$this->setProjectsSidebar($action);
$this->courseware_root = StructuralElement::getCoursewareUser($this->user->id);
if (!$this->courseware_root) {
// create initial courseware dataset
$new = StructuralElement::createEmptyCourseware($this->user->id, 'user');
$this->courseware_root = $new->getRoot();
}
$this->elements = $this->getProjects('all');
}
......
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