Fixed dis-ordered displaying for quiz overview report when no soring is specified (Merged from MOODLE_15_STABLE)
This commit is contained in:
@@ -316,6 +316,11 @@ class quiz_report extends quiz_default_report {
|
||||
$sort = ' ORDER BY '.implode(', ', $newsort);
|
||||
}
|
||||
|
||||
// Fix some wired sorting
|
||||
if (empty($sort)) {
|
||||
$sort = ' ORDER BY uniqueid';
|
||||
}
|
||||
|
||||
// Now it is time to page the data
|
||||
if (!isset($pagesize) || ((int)$pagesize < 1) ) {
|
||||
$pagesize = 10;
|
||||
|
||||
Reference in New Issue
Block a user