Skip to content
Permalink
Browse files

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

…assignment index page
  • Loading branch information...
Michael de Raadt Rossiani Wijaya
Michael de Raadt authored and Rossiani Wijaya committed Feb 27, 2013
1 parent a09484c commit fce2121e19a1148852554a04432ca72e02b954e1
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 fce2121

Please sign in to comment.
You can’t perform that action at this time.