From: tjhunt Date: Thu, 31 Aug 2006 16:59:52 +0000 (+0000) Subject: Give a bit more information to the subclasses. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=6459b8fc8d6812ae10f8f95b98acc485f95c9a39;p=moodle.git Give a bit more information to the subclasses. --- diff --git a/question/type/questiontype.php b/question/type/questiontype.php index 1a250ee011..f7143b98c8 100644 --- a/question/type/questiontype.php +++ b/question/type/questiontype.php @@ -144,9 +144,10 @@ class default_questiontype { // Now to save all the answers and type-specific options - $form->id = $question->id; - $form->qtype = $question->qtype; + $form->id = $question->id; + $form->qtype = $question->qtype; $form->category = $question->category; + $form->questiontext = $question->questiontext; $result = $this->save_question_options($form); @@ -856,6 +857,7 @@ class default_questiontype { // arrays. The ordering of the arrays does not matter. // Question types may wish to override this (eg. to ignore trailing // white space or to make "7.0" and "7" compare equal). + return $state->responses === $teststate->responses; }