mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
Fixed bug in resumitting work - datalib now looks at record->id value.
This commit is contained in:
parent
539f698d73
commit
28584bc0a6
@ -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 = '';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user