]> git.mjollnir.org Git - moodle.git/commitdiff
Unset a meaningless id. This probably does not change anything in moodle, but it...
authortjhunt <tjhunt>
Mon, 17 Dec 2007 15:29:48 +0000 (15:29 +0000)
committertjhunt <tjhunt>
Mon, 17 Dec 2007 15:29:48 +0000 (15:29 +0000)
lib/questionlib.php

index f6d97118794b1c00b2e3b2b570f46466f3be59bc..e702365046e60fee46d6950af3e682710cc8f9b8 100644 (file)
@@ -688,6 +688,7 @@ function get_question_states(&$questions, $cmoptions, $attempt, $lastattemptid =
                 // Restore the state so that the responses will be restored
                 restore_question_state($questions[$i], $laststate);
                 $states[$i] = clone($laststate);
+                unset($states[$i]->id);
             } else {
                 // create a new empty state
                 $states[$i] = new object;