mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-13653 droplow not ignoring ungraded items un sum aggregation; merged from MOODLE_19_STABLE
This commit is contained in:
parent
d1731fda35
commit
d28f25a493
@ -684,6 +684,15 @@ class grade_category extends grade_object {
|
||||
}
|
||||
}
|
||||
|
||||
// use 0 if grade missing, droplow used and aggregating all items
|
||||
if (!$this->aggregateonlygraded and !empty($this->droplow)) {
|
||||
foreach($items as $itemid=>$value) {
|
||||
if (!isset($grade_values[$itemid]) and !in_array($itemid, $excluded)) {
|
||||
$grade_values[$itemid] = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$max = 0;
|
||||
|
||||
//find max grade
|
||||
|
Loading…
x
Reference in New Issue
Block a user