MDL-47064 Grades: Final fix - set the grademax from the item, not the cat

Part of: MDL-46576
This commit is contained in:
Damyon Wiese 2014-09-25 09:44:00 +08:00 committed by Adrian Greeve
parent ee07a54be0
commit 6077a4d43b
3 changed files with 8 additions and 10 deletions

View file

@ -461,7 +461,7 @@ class grade_report_user extends grade_report {
/// Actual Grade
$gradeval = $grade_grade->finalgrade;
$hint = $grade_grade->get_aggregation_hint($grade_object);
$hint = $grade_grade->get_aggregation_hint();
if (!$this->canviewhidden) {
/// Virtual Grade (may be calculated excluding hidden items etc).
$adjustedgrade = $this->blank_hidden_total_and_adjust_bounds($this->courseid,