Permalink
Browse files

Give a bit more information to the subclasses.

  • Loading branch information...
1 parent a974b5a commit 6459b8fc8d6812ae10f8f95b98acc485f95c9a39 tjhunt committed Aug 31, 2006
Showing with 4 additions and 2 deletions.
  1. +4 −2 question/type/questiontype.php
@@ -144,9 +144,10 @@ function save_question($question, $form, $course) {
// 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 @@ function compare_responses(&$question, $state, $teststate) {
// 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;
}

0 comments on commit 6459b8f

Please sign in to comment.