Skip to content

Commit aafc538

Browse files
Exercise: Fix missing MATCHING_COMBINATION, MATCHING_DRAGGABLE_COMBINATION in questions' duplicate() method
1 parent ce11a8b commit aafc538

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/exercise/answer.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1050,7 +1050,7 @@ public function duplicate($newQuestion, $course_info = null)
10501050
}
10511051

10521052
// Fix correct answers
1053-
if (in_array($newQuestion->type, [DRAGGABLE, MATCHING, MATCHING_DRAGGABLE])) {
1053+
if (in_array($newQuestion->type, [DRAGGABLE, MATCHING, MATCHING_DRAGGABLE, MATCHING_COMBINATION, MATCHING_DRAGGABLE_COMBINATION])) {
10541054
$onlyAnswersFlip = array_flip($onlyAnswers);
10551055
foreach ($correctAnswers as $answer_id => $correct_answer) {
10561056
$params = [];

0 commit comments

Comments
 (0)