Permalink
Browse files

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

…MOODLE_23_STABLE
  • Loading branch information...
2 parents fa5509b + fce2121 commit ac19bd186a6ec70a977494a8093aab03060c2e0d Sam Hemelryk committed Mar 4, 2013
Showing with 7 additions and 1 deletion.
  1. +7 −1 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;
}
}

0 comments on commit ac19bd1

Please sign in to comment.