Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-35910 Assignment 2.2: Fixed included files in assignment zip.

If Marking button is enabled, assignment is open and is not finalized, then don't add file to zip
  • Loading branch information...
commit 7212740691b8e569ef951e47ba842c343ed0499e 1 parent ecfe814
@rajeshtaneja rajeshtaneja 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
@@ -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)) {
$a_userid = $submission->userid; //get userid
Please sign in to comment.
Something went wrong with that request. Please try again.