Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'wip-mdl-35910-m22' of git://github.com/rajeshtaneja/moo…

…dle into MOODLE_22_STABLE
  • Loading branch information...
commit d258956c4a0dfb9bbee5ea37a3671b18ce3c0d07 2 parents a6e0e0b + f415f6f
@danpoltawski danpoltawski authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 mod/assignment/type/upload/assignment.class.php
View
4 mod/assignment/type/upload/assignment.class.php
@@ -1162,9 +1162,9 @@ public function download_submissions() {
}
$filename = str_replace(' ', '_', clean_filename($this->course->shortname.'-'.$this->assignment->name.'-'.$groupname.$this->assignment->id.".zip")); //name of new zip file.
foreach ($submissions as $submission) {
- // If assignment is open and submission is not finalized then don't add it to zip.
+ // If assignment is open and submission is not finalized and marking button enabled then don't add it to zip.
$submissionstatus = $this->is_finalized($submission);
- if ($this->isopen() && empty($submissionstatus)) {
+ if ($this->isopen() && empty($submissionstatus) && !empty($this->assignment->var4)) {
continue;
}
$a_userid = $submission->userid; //get userid
Please sign in to comment.
Something went wrong with that request. Please try again.