mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-9204 New submission wasn't given a timemodified upon creation.
This commit is contained in:
parent
79c8c1dba4
commit
b41ee5a874
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue