MDL-15047 "Quiz overview report download is broken - patch" fixed.
Merged from 1.9 stable branch.
This commit is contained in:
@@ -352,7 +352,11 @@ class quiz_report extends quiz_default_report {
|
||||
|
||||
$countsql = 'SELECT COUNT(DISTINCT('.sql_concat('u.id', '\'#\'', 'COALESCE(qa.attempt, 0)').')) '.$from.$where;
|
||||
|
||||
$sort = $table->get_sql_sort();
|
||||
if (!$download){
|
||||
$sort = $table->get_sql_sort();
|
||||
} else {
|
||||
$sort = '';
|
||||
}
|
||||
// Fix some wired sorting
|
||||
if (empty($sort)) {
|
||||
$sort = ' ORDER BY uniqueid';
|
||||
|
||||
Reference in New Issue
Block a user