MDL-17248 fixed incorrect sum when scales involved; merged from MOODLE_19_STABLE (regrading will be forced later)

This commit is contained in:
skodak 2009-04-27 15:21:09 +00:00
parent cb8f67b0a4
commit b3d965212e

View file

@ -731,7 +731,7 @@ class grade_category extends grade_object {
if ($item->gradetype == GRADE_TYPE_VALUE) { if ($item->gradetype == GRADE_TYPE_VALUE) {
$max += $item->grademax; $max += $item->grademax;
} else if ($item->gradetype == GRADE_TYPE_SCALE) { } 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
} }
} }