Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
2.6.6, 2.7.3, 2.8
-
None
-
MOODLE_26_STABLE, MOODLE_27_STABLE, MOODLE_28_STABLE
-
MDL-48258---grade_item-%3Eget_final()
-
Easy
Description
The documentation for get_final() in the grade_item class indicates it should either return a grade_grade item or an array of grade_grade objects.
It doesn't. It returns an array of the objects returned directly from the database.
This means you can't use any of the grade_grade methods (such as is_hidden()).