Skip to content
Snippets Groups Projects
Commit d1580726 authored by Rasmus Fuhse's avatar Rasmus Fuhse
Browse files

Resolve "Admin-Veranstaltungen: Filter nach Typen geht nicht"

Closes #3520

Merge request studip/studip!2404
parent bb3ccef4
No related branches found
No related tags found
No related merge requests found
......@@ -126,7 +126,7 @@ class AdminCourseFilter
}
if ($GLOBALS['user']->cfg->MY_COURSES_TYPE_FILTER && $GLOBALS['user']->cfg->MY_COURSES_TYPE_FILTER !== 'all') {
if (str_contains(Request::option('course_type'), '_')) {
if (str_contains($GLOBALS['user']->cfg->MY_COURSES_TYPE_FILTER, '_')) {
list($sem_class_id, $sem_type_id) = explode('_', $GLOBALS['user']->cfg->MY_COURSES_TYPE_FILTER);
$this->query->where('course_type', 'seminare.status = :course_type', ['course_type' => $sem_type_id]);
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment