Small tweak to specify specifically number of files in an update
authormoodler <moodler>
Tue, 12 Nov 2002 04:59:28 +0000 (04:59 +0000)
committermoodler <moodler>
Tue, 12 Nov 2002 04:59:28 +0000 (04:59 +0000)
mod/assignment/upload.php

index 4a6dc82..0ed3bec 100644 (file)
@@ -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 {