From de2146b276ac1ecdf3245a85f191bb5b6f296894 Mon Sep 17 00:00:00 2001 From: moodler Date: Thu, 6 Feb 2003 06:37:10 +0000 Subject: [PATCH] Note for something that needs to be fixed --- mod/quiz/question.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mod/quiz/question.php b/mod/quiz/question.php index 1732c2ddba..a27873274d 100644 --- a/mod/quiz/question.php +++ b/mod/quiz/question.php @@ -123,6 +123,8 @@ switch ($question->qtype) { case SHORTANSWER: // Delete all the old answers + // FIXME - instead of deleting, update existing answers + // so as not to break existing references to them delete_records("quiz_answers", "question", $question->id); delete_records("quiz_shortanswer", "question", $question->id); @@ -164,6 +166,8 @@ } break; case TRUEFALSE: + // FIXME - instead of deleting, update existing answers + // so as not to break existing references to them delete_records("quiz_answers", "question", $question->id); delete_records("quiz_truefalse", "question", $question->id); @@ -192,6 +196,8 @@ } break; case MULTICHOICE: + // FIXME - instead of deleting, update existing answers + // so as not to break existing references to them delete_records("quiz_answers", "question", $question->id); delete_records("quiz_multichoice", "question", $question->id); -- 2.39.5