mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
For assignments without a timemodified stamp, add one when graded
This commit is contained in:
parent
dfcfb72876
commit
c078c29bb2
@ -96,6 +96,9 @@
|
||||
$newsubmission->timemarked = $timenow;
|
||||
$newsubmission->mailed = 0; // Make sure mail goes out (again, even)
|
||||
$newsubmission->id = $num;
|
||||
if (empty($submission->timemodified)) { // eg for offline assignments
|
||||
$newsubmission->timemodified = $timenow;
|
||||
}
|
||||
if (! update_record("assignment_submissions", $newsubmission)) {
|
||||
notify(get_string("failedupdatefeedback", "assignment", $submission->userid));
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user