Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Give a bit more information to the subclasses.

  • Loading branch information...
commit 6459b8fc8d6812ae10f8f95b98acc485f95c9a39 1 parent a974b5a
tjhunt authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 question/type/questiontype.php
View
6 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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.