]> git.mjollnir.org Git - moodle.git/commitdiff
Give a bit more information to the subclasses.
authortjhunt <tjhunt>
Thu, 31 Aug 2006 16:59:52 +0000 (16:59 +0000)
committertjhunt <tjhunt>
Thu, 31 Aug 2006 16:59:52 +0000 (16:59 +0000)
question/type/questiontype.php

index 1a250ee0112c6ab7568e9b8ce03680b50117f4ce..f7143b98c8fe57053b058319e1949962291b530e 100644 (file)
@@ -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;
     }