From: moodler Date: Tue, 12 Nov 2002 04:59:28 +0000 (+0000) Subject: Small tweak to specify specifically number of files in an update X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=c75f5b4348ad2160e5afe3bdad59e7d68e34bdaf;p=moodle.git Small tweak to specify specifically number of files in an update --- diff --git a/mod/assignment/upload.php b/mod/assignment/upload.php index 4a6dc8214a..0ed3becc56 100644 --- a/mod/assignment/upload.php +++ b/mod/assignment/upload.php @@ -51,6 +51,7 @@ assignment_delete_user_files($assignment, $USER, $newfile_name); if ($submission) { $submission->timemodified = time(); + $submission->numfiles = 1; if (update_record("assignment_submissions", $submission)) { print_heading(get_string("uploadsuccess", "assignment", $newfile_name) ); } else {