From 8fc521f1be099d7c29d8dcff0d501a64e89b1a51 Mon Sep 17 00:00:00 2001 From: Elmar Ludwig Date: Fri, 6 Feb 2026 18:25:17 +0100 Subject: use semester filter (and update if changed), fixes #6235 Closes #6235 Merge request studip/studip!4715 --- app/controllers/admin/courses.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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('
', $strings) ?: _('nicht angegeben'); } if (in_array('semester', $activated_fields)) { -- cgit v1.0