Fixed bug in resumitting work - datalib now looks at record->id value.

This commit is contained in:
rkingdon 2004-09-09 18:47:07 +00:00
parent 539f698d73
commit 28584bc0a6

View File

@ -157,6 +157,7 @@ function workshop_copy_assessment($assessment, $submission, $withfeedback = fals
if ($grades = get_records("workshop_grades", "assessmentid", $assessment->id)) {
foreach ($grades as $grade) {
unset($grade->id); // clear id, insert record now seems to believe it!
if (!$withfeedback) {
$grade->feedback = '';
}