From b5fdf66a84ab96795b0cceed7cac013146adf541 Mon Sep 17 00:00:00 2001 From: Jan-Hendrik Willms <tleilax+studip@gmail.com> Date: Thu, 15 Aug 2024 10:08:52 +0000 Subject: [PATCH] check eval configuration instead of vote configuration when displaying course overview, fixes #4440 Merge request studip/studip!3267 --- app/controllers/course/overview.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/controllers/course/overview.php b/app/controllers/course/overview.php index 96e7f5abefc..bb9b9600c03 100644 --- a/app/controllers/course/overview.php +++ b/app/controllers/course/overview.php @@ -58,12 +58,16 @@ class Course_OverviewController extends AuthenticatedController // Fetch votes if (Config::get()->VOTE_ENABLE) { - $response = $this->relay('evaluation/display/' . $this->course_id); - $this->evaluations = $response->body; $response = $this->relay('questionnaire/widget/' . $this->course_id); $this->questionnaires = $response->body; } + // Fetch evaluations + if (Config::get()->EVAL_ENABLE) { + $response = $this->relay('evaluation/display/' . $this->course_id); + $this->evaluations = $response->body; + } + if (!$this->studygroup_mode) { $this->avatar = CourseAvatar::getAvatar($this->course_id); -- GitLab