From 6459b8fc8d6812ae10f8f95b98acc485f95c9a39 Mon Sep 17 00:00:00 2001 From: tjhunt Date: Thu, 31 Aug 2006 16:59:52 +0000 Subject: [PATCH] Give a bit more information to the subclasses. --- question/type/questiontype.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; } -- 2.39.5