mirror of
https://github.com/moodle/moodle.git
synced 2025-02-15 13:24:56 +01:00
fix for bug 4067
This commit is contained in:
parent
ba43f6673a
commit
15b3db1236
@ -64,7 +64,7 @@ class assignment_uploadsingle extends assignment_base {
|
||||
}
|
||||
}
|
||||
|
||||
if ($this->isopen() && (!$filecount || $this->assignment->resubmit)) {
|
||||
if ($this->isopen() && (!$filecount || $this->assignment->resubmit || !$submission->timemarked)) {
|
||||
$this->view_upload_form();
|
||||
}
|
||||
|
||||
@ -100,8 +100,8 @@ class assignment_uploadsingle extends assignment_base {
|
||||
$this->view_header(get_string('upload'));
|
||||
|
||||
$filecount = $this->count_user_files($USER->id);
|
||||
|
||||
if ($this->isopen() && (!$filecount || $this->assignment->resubmit)) {
|
||||
$submission = $this->get_submission($USER->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
|
||||
if (($submission->grade > 0) and !$this->assignment->resubmit) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user