Browse files

Fixed Bug #1083.

  • Loading branch information...
1 parent b082b2c commit d4966ef24a21dce6c935c80a06a8379d2f0a37ee rkingdon committed Mar 12, 2004
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/exercise/lib.php
View
2 mod/exercise/lib.php
@@ -686,7 +686,7 @@ function exercise_copy_assessment($assessment, $submission, $withfeedback = fals
if ($grades = get_records("exercise_grades", "assessmentid", $assessment->id)) {
foreach ($grades as $grade) {
-
+ unset($grade->id); // clear id, insert record now seems to believe it!
if (!$withfeedback) {
$grade->feedback = '';
}

0 comments on commit d4966ef

Please sign in to comment.