Restore works again, except for random questions.

This commit is contained in:
gustav_delius
2006-03-21 22:35:03 +00:00
parent 315559d354
commit ba8f7ff02a
2 changed files with 1 additions and 16 deletions
@@ -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;
+1 -1
View 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