From c777d658562afaeff81c0f63c508e977c0ea083b Mon Sep 17 00:00:00 2001 From: Jan-Hendrik Willms <tleilax+github@gmail.com> Date: Mon, 21 Oct 2024 10:03:07 +0200 Subject: [PATCH] fix the faulty bugfix by addressing the course id correctly, re #4530 --- app/controllers/course/timesrooms.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/course/timesrooms.php b/app/controllers/course/timesrooms.php index 52fa6fff317..ba225efd298 100644 --- a/app/controllers/course/timesrooms.php +++ b/app/controllers/course/timesrooms.php @@ -1886,7 +1886,7 @@ class Course_TimesroomsController extends AuthenticatedController CourseDate::findEachBySQL( function (CourseDate $date) use (&$valid) { - if ($date->range_id === $this->course_id) { + if ($date->range_id === $this->course->id) { $valid[] = $date->id; } }, @@ -1896,7 +1896,7 @@ class Course_TimesroomsController extends AuthenticatedController CourseExDate::findEachBySQL( function (CourseExDate $date) use (&$valid) { - if ($date->range_id === $this->course_id) { + if ($date->range_id === $this->course->id) { $valid[] = $date->id; } }, -- GitLab