diff options
Diffstat (limited to 'app')
| -rw-r--r-- | app/controllers/admin/courses.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/app/controllers/admin/courses.php b/app/controllers/admin/courses.php index 6a9a311..fb65f70 100644 --- a/app/controllers/admin/courses.php +++ b/app/controllers/admin/courses.php @@ -540,6 +540,12 @@ class Admin_CoursesController extends AuthenticatedController 'institut_id' => 'MY_INSTITUTES_DEFAULT', ]; + if (!empty($filters['semester_id'])) { + $this->semester = Semester::find($filters['semester_id']); + } else { + $this->semester = null; + } + if (!empty($filters['institut_id'])) { $config->store( 'MY_INSTITUTES_INCLUDE_CHILDREN', @@ -652,7 +658,7 @@ class Admin_CoursesController extends AuthenticatedController $d['type'] = htmlReady($semtype['name']); } if (in_array('room_time', $activated_fields)) { - $strings = $course->getAllDatesInSemester()->toStringArray(); + $strings = $course->getAllDatesInSemester($this->semester)->toStringArray(); $d['room_time'] = implode('<br>', $strings) ?: _('nicht angegeben'); } if (in_array('semester', $activated_fields)) { |
