Skip to content

Commit

Permalink
Merge pull request #4026 from christianbeeznest/ASF-19250
Browse files Browse the repository at this point in the history
Exercise: Fix Fill in the blank question is recognized as answer saved - refs BT#19250
  • Loading branch information
NicoDucou committed Oct 18, 2021
2 parents 0dee072 + 5493380 commit 6bf0b11
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions main/exercise/exercise.class.php
Expand Up @@ -7431,10 +7431,13 @@ public function editQuestionToRemind($exeId, $questionId, $action = 'add')
*/
public function fill_in_blank_answer_to_array($answer)
{
api_preg_match_all('/\[[^]]+\]/', $answer, $teacher_answer_list);
$teacher_answer_list = $teacher_answer_list[0];
$listStudentResults = FillBlanks::getAnswerInfo(
$answer,
true
);
$teacherAnswerList = $listStudentResults['student_answer'];

return $teacher_answer_list;
return $teacherAnswerList;
}

/**
Expand Down

0 comments on commit 6bf0b11

Please sign in to comment.