Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

solving MDL-7496 for calculated merged from head

  • Loading branch information...
commit 439e93b27f8f189032f472dcdd6dc6647e13807c 1 parent 5234b78
pichetp authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 question/type/shortanswer/questiontype.php
View
4 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) {
Please sign in to comment.
Something went wrong with that request. Please try again.