Skip to content
Browse files

Questions were being created here without a stamp

  • Loading branch information...
1 parent 17a2387 commit 39ced832ac14537a1ecd121b62e510869145a294 moodler committed Aug 29, 2003
Showing with 2 additions and 0 deletions.
  1. +1 −0 mod/quiz/editmultianswer.php
  2. +1 −0 mod/quiz/multiple.php
View
1 mod/quiz/editmultianswer.php
@@ -54,6 +54,7 @@
error("Could not update question!");
}
} else { // Question is a new one
+ $question->stamp = make_unique_id_code(); // Set the unique code (not to be changed)
if (!$question->id = insert_record("quiz_questions", $question)) {
error("Could not insert new question!");
}
View
1 mod/quiz/multiple.php
@@ -46,6 +46,7 @@
$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++) {
if (!$newquestionids[] = insert_record("quiz_questions", $question)) {
error("Could not insert new random question!");

0 comments on commit 39ced83

Please sign in to comment.
Something went wrong with that request. Please try again.