Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix for bug 4067

  • Loading branch information...
commit 68e8fb7df07d5863884332b71f3e1607bc48617c 1 parent 01004e9
toyomoyo authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 mod/assignment/type/uploadsingle/assignment.class.php
View
6 mod/assignment/type/uploadsingle/assignment.class.php
@@ -64,7 +64,7 @@ function view() {
}
}
- if ($this->isopen() && (!$filecount || $this->assignment->resubmit)) {
+ if ($this->isopen() && (!$filecount || $this->assignment->resubmit || !$submission->timemarked)) {
$this->view_upload_form();
}
@@ -100,8 +100,8 @@ function upload() {
$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) {
Please sign in to comment.
Something went wrong with that request. Please try again.