diff --git a/question/type/shortanswer/questiontype.php b/question/type/shortanswer/questiontype.php index 2f40f1aaf92e6..84fe5e05c26aa 100644 --- a/question/type/shortanswer/questiontype.php +++ b/question/type/shortanswer/questiontype.php @@ -354,10 +354,10 @@ function print_question_grading_details(&$question, &$state, $cmoptions, $option maximum grade available and a warning if a penalty was applied for the attempt and displays the overall grade obtained counting all previous responses (and penalties) */ - + global $QTYPES ; // MDL-7496 show correct answer after "Incorrect" $correctanswer = ''; - if ($correctanswers = $this->get_correct_responses($question, $state)) { + if ($correctanswers = $QTYPES[$question->qtype]->get_correct_responses($question, $state)) { if ($options->readonly && $options->correct_responses) { $delimiter = ''; if ($correctanswers) {