mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 17:06:53 +02:00
MDL-35435: Fix invalid CSV file when assignment has no enrolled student and submission in offline grading worksheet
This commit is contained in:
parent
a3ab18c735
commit
5fc596303f
1 changed files with 4 additions and 0 deletions
|
@ -302,6 +302,10 @@ class assign_grading_table extends table_sql implements renderable {
|
|||
}
|
||||
}
|
||||
|
||||
// When there is no data we still want the column headers printed in the csv file.
|
||||
if ($this->is_downloading()) {
|
||||
$this->start_output();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue