diff options
| author | Elmar Ludwig <elmar.ludwig@uni-osnabrueck.de> | 2026-02-06 18:25:17 +0100 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2026-02-09 08:50:05 +0100 |
| commit | 49e17c8db08d6e6109e6d8ed3b187c2b543cfbae (patch) | |
| tree | 8db97342d527d88beac70af56789e19fa7e3bfd8 /app/controllers/admin | |
| parent | 830fdd1f72337ab74a91801df8f198743aad8833 (diff) | |
use semester filter (and update if changed), fixes #6235
Closes #6235
Merge request studip/studip!4715
Diffstat (limited to 'app/controllers/admin')
| -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)) { |
