Exercise: Fix matching global and matching draggable global question types setting wrong c_quiz_answer.correct id - refs BT#19930

pull/4322/head
Yannick Warnier 3 years ago
parent b353ee8780
commit a91286ed33
  1. 2
      main/exercise/answer.class.php

@ -770,7 +770,7 @@ class Answer
$questionType = $this->getQuestionType(); $questionType = $this->getQuestionType();
if (in_array( if (in_array(
$questionType, $questionType,
[MATCHING, MATCHING_DRAGGABLE] [MATCHING, MATCHING_DRAGGABLE, MATCHING_GLOBAL, MATCHING_DRAGGABLE_GLOBAL]
)) { )) {
$answer = new Answer($this->questionId, $courseId, $this->exercise, false); $answer = new Answer($this->questionId, $courseId, $this->exercise, false);
$answer->read(); $answer->read();

Loading…
Cancel
Save