]> git.mjollnir.org Git - moodle.git/commitdiff
Note for something that needs to be fixed
authormoodler <moodler>
Thu, 6 Feb 2003 06:37:10 +0000 (06:37 +0000)
committermoodler <moodler>
Thu, 6 Feb 2003 06:37:10 +0000 (06:37 +0000)
mod/quiz/question.php

index 1732c2ddba0b5ebb41a43a64f40cc0b31f50c949..a27873274d41dc5c0078788d260395f5da5b20b1 100644 (file)
             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);
     
                     }
                 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);
     
                     }
                 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);