]> git.mjollnir.org Git - moodle.git/commitdiff
Use unique stamps when creating multiple questions ...
authormoodler <moodler>
Tue, 28 Oct 2003 09:50:23 +0000 (09:50 +0000)
committermoodler <moodler>
Tue, 28 Oct 2003 09:50:23 +0000 (09:50 +0000)
mod/quiz/multiple.php

index da9c910afd206001caf1da13886ee5794ec33230..204465db3236ff2e68c7a4661d228b3a93b7e6f2 100644 (file)
@@ -46,8 +46,8 @@
                 $question->questiontext = "---";
                 $question->image = "";
                 $question->defaultgrade = $form->randomgrade;
-                $question->stamp = make_unique_id_code();  // Set the unique code (not to be changed)
                 for ($i=0; $i<$randomcreate; $i++) {
+                    $question->stamp = make_unique_id_code();  // Set the unique code (not to be changed)
                     if (!$newquestionids[] = insert_record("quiz_questions", $question)) {
                         error("Could not insert new random question!");
                     }