Give a bit more information to the subclasses.

This commit is contained in:
tjhunt 2006-08-31 16:59:52 +00:00
parent a974b5a4d8
commit 6459b8fc8d

View 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;
}