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

check eval configuration instead of vote configuration when displaying course overview, fixes #4440

Merge request studip/studip!3267
parent 9000ad71
No related branches found
No related tags found
No related merge requests found
...@@ -58,12 +58,16 @@ class Course_OverviewController extends AuthenticatedController ...@@ -58,12 +58,16 @@ class Course_OverviewController extends AuthenticatedController
// Fetch votes // Fetch votes
if (Config::get()->VOTE_ENABLE) { 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); $response = $this->relay('questionnaire/widget/' . $this->course_id);
$this->questionnaires = $response->body; $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) { if (!$this->studygroup_mode) {
$this->avatar = CourseAvatar::getAvatar($this->course_id); $this->avatar = CourseAvatar::getAvatar($this->course_id);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment