From ba8f7ff02ad146e6fe259aebb3065cf8c9b8b09d Mon Sep 17 00:00:00 2001 From: gustav_delius Date: Tue, 21 Mar 2006 22:35:03 +0000 Subject: [PATCH] Restore works again, except for random questions. --- .../questiontypes/multianswer/questiontype.php | 15 --------------- question/questiontypes/questiontype.php | 2 +- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/question/questiontypes/multianswer/questiontype.php b/question/questiontypes/multianswer/questiontype.php index f0fd55ea17..c37ea7de28 100644 --- a/question/questiontypes/multianswer/questiontype.php +++ b/question/questiontypes/multianswer/questiontype.php @@ -476,21 +476,6 @@ class quiz_embedded_cloze_qtype extends default_questiontype { } backup_flush(300); } -/* - //If we have created the question_multianswer record, now, depending of the - //answertype, delegate the restore to every qtype function - if ($newid) { - if ($multianswer->answertype == "1") { - $status = quiz_restore_shortanswer ($old_question_id,$new_question_id,$mul_info,$restore); - } else if ($multianswer->answertype == "3") { - $status = quiz_restore_multichoice ($old_question_id,$new_question_id,$mul_info,$restore); - } else if ($multianswer->answertype == "8") { - $status = quiz_restore_numerical ($old_question_id,$new_question_id,$mul_info,$restore); - } - } else { - $status = false; - } -*/ } return $status; diff --git a/question/questiontypes/questiontype.php b/question/questiontypes/questiontype.php index 44ed8ddaf9..4822cb1743 100644 --- a/question/questiontypes/questiontype.php +++ b/question/questiontypes/questiontype.php @@ -974,7 +974,7 @@ class default_questiontype { function restore_recode_answer($state, $restore) { // There is nothing to decode - return true; + return $state->answer; } //This function restores the question_rqp_states -- 2.39.5