Skip to content
Snippets Groups Projects
Commit 8607d579 authored by Moritz Strohm's avatar Moritz Strohm
Browse files

CourseDateDecorator: fixed coures_sem_type_id field output

parent ff2d507e
Branches
No related tags found
No related merge requests found
...@@ -205,7 +205,7 @@ class CourseDateDecorator extends Decorator ...@@ -205,7 +205,7 @@ class CourseDateDecorator extends Decorator
} }
$result[$this->fields['course_full_name']->getDisplayName()] = $course_full_name; $result[$this->fields['course_full_name']->getDisplayName()] = $course_full_name;
} }
if (in_array('course_sem_type_id', $this->enabled_decorated_fields)) { if ($this->fields['course_sem_type_id']->isEnabled()) {
$sem_type_id = ''; $sem_type_id = '';
if ($course_date->course instanceof \Course) { if ($course_date->course instanceof \Course) {
$sem_type_id = $course_date->course->status; $sem_type_id = $course_date->course->status;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment