Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'MDL-35350_m23' of git://github.com/rwijaya/moodle into …

…MOODLE_23_STABLE
  • Loading branch information...
commit ac19bd186a6ec70a977494a8093aab03060c2e0d 2 parents fa5509b + fce2121
@samhemelryk samhemelryk authored
Showing with 7 additions and 1 deletion.
  1. +7 −1 mod/assignment/type/upload/assignment.class.php
View
8 mod/assignment/type/upload/assignment.class.php
@@ -1205,7 +1205,13 @@ public function download_submissions() {
* @return bool Indicates if the submission was found to be complete
*/
public function is_submitted_with_required_data($submission) {
- return ($submission->timemodified AND $submission->data2);
+ if ($this->drafts_tracked()) {
+ $submitted = $submission->timemodified > 0 &&
+ $submission->data2 == ASSIGNMENT_STATUS_SUBMITTED;
+ } else {
+ $submitted = $submission->numfiles > 0;
+ }
+ return $submitted;
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.