MDL-15047 "Quiz overview report download is broken - patch" fixed.

Merged from 1.9 stable branch.
This commit is contained in:
jamiesensei
2008-05-30 12:23:10 +00:00
parent 57443b9af4
commit f198d0bda7
+5 -1
View File
@@ -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';