Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Small tweak to specify specifically number of files in an update

  • Loading branch information...
commit c75f5b4348ad2160e5afe3bdad59e7d68e34bdaf 1 parent b68de3e
moodler authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  mod/assignment/upload.php
View
1  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 {
Please sign in to comment.
Something went wrong with that request. Please try again.