mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
MDL-48655 gradebook: Don't treat a scale with a gradepass of 0 as passed
This commit is contained in:
parent
981f06fad5
commit
fdeda649e2
@ -913,8 +913,12 @@ class grade_grade extends grade_object {
|
||||
return null;
|
||||
}
|
||||
|
||||
// Return null if gradepass == grademin or gradepass is null
|
||||
if (is_null($this->grade_item->gradepass) || $this->grade_item->gradepass == $this->grade_item->grademin) {
|
||||
// Return null if gradepass == grademin, gradepass is null, or grade item is a scale and gradepass is 0.
|
||||
if (is_null($this->grade_item->gradepass)) {
|
||||
return null;
|
||||
} else if ($this->grade_item->gradepass == $this->grade_item->grademin) {
|
||||
return null;
|
||||
} else if ($this->grade_item->gradetype == GRADE_TYPE_SCALE && !grade_floats_different($this->grade_item->gradepass, 0.0)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user