Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed dis-ordered displaying for quiz overview report when no soring …

…is specified (Merged from MOODLE_15_STABLE)
  • Loading branch information...
commit 2f5fe55234c74579779e7bb1091028769b9e0a19 1 parent 404fe83
patrickslee authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 mod/quiz/report/overview/report.php
View
5 mod/quiz/report/overview/report.php
@@ -316,6 +316,11 @@ function display($quiz, $cm, $course) { /// This function just displays the
$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;

0 comments on commit 2f5fe55

Please sign in to comment.
Something went wrong with that request. Please try again.