From a91286ed33668c5d332398934ae7b89aa8b3b628 Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Sat, 11 Jun 2022 15:16:44 +0200 Subject: [PATCH] Exercise: Fix matching global and matching draggable global question types setting wrong c_quiz_answer.correct id - refs BT#19930 --- main/exercise/answer.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/exercise/answer.class.php b/main/exercise/answer.class.php index 99279cae48..198f543f20 100755 --- a/main/exercise/answer.class.php +++ b/main/exercise/answer.class.php @@ -770,7 +770,7 @@ class Answer $questionType = $this->getQuestionType(); if (in_array( $questionType, - [MATCHING, MATCHING_DRAGGABLE] + [MATCHING, MATCHING_DRAGGABLE, MATCHING_GLOBAL, MATCHING_DRAGGABLE_GLOBAL] )) { $answer = new Answer($this->questionId, $courseId, $this->exercise, false); $answer->read();