From: moodler Date: Thu, 6 Feb 2003 06:37:10 +0000 (+0000) Subject: Note for something that needs to be fixed X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=de2146b276ac1ecdf3245a85f191bb5b6f296894;p=moodle.git Note for something that needs to be fixed --- 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);