mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-35350 Advanced uploading assignment: add submission timestamp on assignment index page
This commit is contained in:
parent
f29e62cb6c
commit
ce744f7134
1 changed files with 7 additions and 1 deletions
|
@ -1123,7 +1123,13 @@ class assignment_upload extends assignment_base {
|
||||||
* @return bool Indicates if the submission was found to be complete
|
* @return bool Indicates if the submission was found to be complete
|
||||||
*/
|
*/
|
||||||
public function is_submitted_with_required_data($submission) {
|
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue