Permalink
Browse files

MDL-35350 Advanced uploading assignment: add submission timestamp on …

…assignment index page
  • Loading branch information...
1 parent f29e62c commit ce744f7134b3783ca2ce0f44c235853ae0790912 @deraadt deraadt committed with rwijaya Feb 27, 2013
Showing with 7 additions and 1 deletion.
  1. +7 −1 mod/assignment/type/upload/assignment.class.php
@@ -1123,7 +1123,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 ce744f7

Please sign in to comment.