Skip to content

Commit

Permalink
MDL-17248 fixed incorrect sum when scales involved; merged from MOODL…
Browse files Browse the repository at this point in the history
…E_19_STABLE (regrading will be forced later)
  • Loading branch information
skodak committed Apr 27, 2009
1 parent cb8f67b commit b3d9652
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/grade/grade_category.php
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,7 @@ private function auto_update_max($items) {
if ($item->gradetype == GRADE_TYPE_VALUE) {
$max += $item->grademax;
} else if ($item->gradetype == GRADE_TYPE_SCALE) {
$max += $item->grademax - 1; // scales min is 1
$max += $item->grademax; // 0 = nograde, 1 = first scale item, 2 = second scale item
}
}

Expand Down

0 comments on commit b3d9652

Please sign in to comment.