mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-17248 fixed incorrect sum when scales involved; merged from MOODLE_19_STABLE (regrading will be forced later)
This commit is contained in:
parent
cb8f67b0a4
commit
b3d965212e
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue