mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
assignment MDL-22609 notice when no submission yet in single upload grading. - fixed.
This commit is contained in:
parent
31f56ef630
commit
3db4e0112f
1 changed files with 4 additions and 1 deletions
|
@ -193,7 +193,10 @@ class assignment_uploadsingle extends assignment_base {
|
|||
}
|
||||
|
||||
$submission = $this->get_submission($USER->id);
|
||||
$filecount = 0;
|
||||
if ($submission) {
|
||||
$filecount = $this->count_user_files($submission->id);
|
||||
}
|
||||
if ($this->isopen() && (!$filecount || $this->assignment->resubmit || !$submission->timemarked)) {
|
||||
if ($submission = $this->get_submission($USER->id)) {
|
||||
//TODO: change later to ">= 0", to prevent resubmission when graded 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue