]> git.mjollnir.org Git - moodle.git/commitdiff
Restore works again, except for random questions.
authorgustav_delius <gustav_delius>
Tue, 21 Mar 2006 22:35:03 +0000 (22:35 +0000)
committergustav_delius <gustav_delius>
Tue, 21 Mar 2006 22:35:03 +0000 (22:35 +0000)
question/questiontypes/multianswer/questiontype.php
question/questiontypes/questiontype.php

index f0fd55ea17c49861e6856f4ae1d8d6e4e46d7160..c37ea7de2879fa2e67140ee17047c8fb0ab8af9e 100644 (file)
@@ -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;
index 44ed8ddaf941fbcd9a46eb764936147ff65df1ab..4822cb1743f372f7b1babbdfbf86d9055546deef 100644 (file)
@@ -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