Skip to content

Commit

Permalink
Keep up with latest moodle code to count submissions
Browse files Browse the repository at this point in the history
  • Loading branch information
sunner committed Aug 31, 2012
1 parent 14397c5 commit eee343e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion clients/mod/assignment/type/onlinejudge/assignment.class.php
Expand Up @@ -432,6 +432,7 @@ function upload_file($mform, $options) {
$formdata = file_postupdate_standard_filemanager($formdata, 'files', $options, $this->context, 'mod_assignment', 'submission', $submission->id);
$updates = new stdClass();
$updates->id = $submission->id;
$updates->numfiles = count($fs->get_area_files($this->context->id, 'mod_assignment', 'submission', $submission->id, 'sortorder', false));
$updates->timemodified = time();
$DB->update_record('assignment_submissions', $updates);
add_to_log($this->course->id, 'assignment', 'upload',
Expand All @@ -441,7 +442,7 @@ function upload_file($mform, $options) {
$this->email_teachers($submission);
}

$this->request_judge($submission);
$this->request_judge($submission); // Added by onlinejudge

// send files to event system
$files = $fs->get_area_files($this->context->id, 'mod_assignment', 'submission', $submission->id);
Expand Down

0 comments on commit eee343e

Please sign in to comment.