Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-35435: Fix invalid CSV file when assignment has no enrolled stude…

…nt and submission in offline grading worksheet
  • Loading branch information...
commit 5fc596303f011047393d6d3ef2b8d42b349c577f 1 parent a3ab18c
@raymondAntonio raymondAntonio authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 mod/assign/gradingtable.php
View
4 mod/assign/gradingtable.php
@@ -302,6 +302,10 @@ public function __construct(assign $assignment, $perpage, $filter, $rowoffset, $
}
}
+ // When there is no data we still want the column headers printed in the csv file.
+ if ($this->is_downloading()) {
+ $this->start_output();
+ }
}
/**
Please sign in to comment.
Something went wrong with that request. Please try again.