mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 20:50:21 +01:00
MDL-78790 gradereport_grader: Fix sorting.
This commit is contained in:
parent
3d3dd827fa
commit
25312f1692
@ -133,6 +133,9 @@ grade_regrade_final_grades_if_required($course);
|
||||
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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user