Skip to content

Commit

Permalink
MDL-78790 gradereport_grader: Fix sorting.
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyatregubov authored and HuongNV13 committed Aug 10, 2023
1 parent 3d3dd82 commit 25312f1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions grade/report/grader/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,9 @@
if ($sort && strcasecmp($sort, 'desc') !== 0) {
$sort = 'asc';
}
// We have lots of hardcoded 'ASC' and 'DESC' strings in grade/report/grader.lib :(. So we need to uppercase the sort.
$sort = strtoupper($sort);

$report = new grade_report_grader($courseid, $gpr, $context, $page, $sortitemid, $sort);

// We call this a little later since we need some info from the grader report.
Expand Down

0 comments on commit 25312f1

Please sign in to comment.