mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
Fixing OU report issues
This commit is contained in:
parent
ee8652f3de
commit
206f995349
@ -160,6 +160,9 @@ echo '</div>';
|
|||||||
print_footer($course);
|
print_footer($course);
|
||||||
die;
|
die;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* TODO document
|
||||||
|
*/
|
||||||
function print_grade_tree(&$gtree, $element, $moving, &$gpr, $switch, $switchedlast=false) {
|
function print_grade_tree(&$gtree, $element, $moving, &$gpr, $switch, $switchedlast=false) {
|
||||||
global $CFG, $COURSE;
|
global $CFG, $COURSE;
|
||||||
|
|
||||||
|
@ -800,7 +800,7 @@ class grade_tree {
|
|||||||
$order = key($element['children']);
|
$order = key($element['children']);
|
||||||
unset($element['children'][$order]);
|
unset($element['children'][$order]);
|
||||||
$element['children'][$order] =& $category_item;
|
$element['children'][$order] =& $category_item;
|
||||||
foreach ($element['children'] as $sortorder=>$child) {
|
foreach ($element['children'] as $sortorder => $child) {
|
||||||
grade_tree::category_grade_last($element['children'][$sortorder]);
|
grade_tree::category_grade_last($element['children'][$sortorder]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user