Browse files

solving MDL-7496 for calculated merged from head

  • Loading branch information...
1 parent 5234b78 commit 439e93b27f8f189032f472dcdd6dc6647e13807c pichetp committed Oct 31, 2007
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) {

0 comments on commit 439e93b

Please sign in to comment.