aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/admin/courses.php
diff options
context:
space:
mode:
authorElmar Ludwig <elmar.ludwig@uni-osnabrueck.de>2026-02-06 18:25:17 +0100
committerElmar Ludwig <elmar.ludwig@uni-osnabrueck.de>2026-02-06 18:25:17 +0100
commit8fc521f1be099d7c29d8dcff0d501a64e89b1a51 (patch)
tree50d3d5158bcc1b12da3f93d7df334f67df0bf789 /app/controllers/admin/courses.php
parentbccede6563a312f029a04ce93d3f504f695a55ca (diff)
use semester filter (and update if changed), fixes #6235
Closes #6235 Merge request studip/studip!4715
Diffstat (limited to 'app/controllers/admin/courses.php')
-rw-r--r--app/controllers/admin/courses.php8
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)) {