Skip to content

Commit cb34d08

Browse files
committed
Gradebook: Fix total average weight calculation - refs BT#22390
1 parent 11d61b7 commit cb34d08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/gradebook/lib/fe/gradebooktable.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -915,7 +915,7 @@ public function get_table_data($from = 1, $per_page = null, $column = null, $dir
915915
$averageWeight += $averageScore[1];
916916
}
917917
$categoryAverage = $categoryAverage / count($totalAverageList);
918-
//$averageWeight = $averageWeight ($totalAverageList);
918+
$averageWeight = $averageWeight / count($totalAverageList);
919919

920920
// Overwrite main weight
921921
//$totalAverage[0] = $average / count($this->studentList);

0 commit comments

Comments
 (0)