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-m23' of git://github.com/rajeshtaneja/moo…

…dle into MOODLE_23_STABLE
  • Loading branch information...
commit 33abc6e17348b7cb4742b5f0e169891465e996b6 2 parents 272dfda + ea67a06
Dan Poltawski danpoltawski authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 mod/assignment/type/upload/assignment.class.php
4 mod/assignment/type/upload/assignment.class.php
View
@@ -1164,9 +1164,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.