Skip to content
Snippets Groups Projects
Commit 491476f6 authored by Ron Lucke's avatar Ron Lucke Committed by Jan-Hendrik Willms
Browse files

fix #509

parent 69d2e153
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.
Please register or to comment