Permalink
Browse files

Small tweak to specify specifically number of files in an update

  • Loading branch information...
1 parent b68de3e commit c75f5b4348ad2160e5afe3bdad59e7d68e34bdaf moodler committed Nov 12, 2002
Showing with 1 addition and 0 deletions.
  1. +1 −0 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 {

0 comments on commit c75f5b4

Please sign in to comment.