mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-9204 New submission wasn't given a timemodified upon creation.
This commit is contained in:
parent
2bf7e0b1be
commit
ac4c12c5bd
@ -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',
|
||||
|
Loading…
x
Reference in New Issue
Block a user