Skip to content
Snippets Groups Projects
Commit c777d658 authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

fix the faulty bugfix by addressing the course id correctly, re #4530

parent 3f0c8b22
No related branches found
No related tags found
No related merge requests found
Pipeline #27880 passed
......@@ -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;
}
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment