MDL-9204 New submission wasn't given a timemodified upon creation.

This commit is contained in:
nicolasconnault 2007-04-05 03:19:58 +00:00
parent 2bf7e0b1be
commit ac4c12c5bd

View File

@ -138,6 +138,7 @@ class assignment_uploadsingle extends assignment_base {
}
} else {
$newsubmission = $this->prepare_new_submission($USER->id);
$newsubmission->timemodified = time();
$newsubmission->numfiles = 1;
if (insert_record('assignment_submissions', $newsubmission)) {
add_to_log($this->course->id, 'assignment', 'upload',