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

Biest #3563

Closes #3563

Merge request studip/studip!2446
parent 80ecf133
No related branches found
No related tags found
No related merge requests found
...@@ -623,7 +623,8 @@ class StructuralElement extends \SimpleORMap implements \PrivacyObject ...@@ -623,7 +623,8 @@ class StructuralElement extends \SimpleORMap implements \PrivacyObject
private function findCoursewareElements($user): array private function findCoursewareElements($user): array
{ {
$root = $this->getCourseware($this->range_id, $this->range_type); $unit = $this->findUnit();
$root = $unit->structural_element;
$elements = array_merge([$root], $root->findDescendants($user)); $elements = array_merge([$root], $root->findDescendants($user));
return $elements; return $elements;
......
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