-
Bug
-
Resolution: Fixed
-
Major
-
3.9.9, 3.10.6, 3.11.2
-
MOODLE_310_STABLE, MOODLE_311_STABLE, MOODLE_39_STABLE
-
MOODLE_310_STABLE, MOODLE_311_STABLE
-
To reproduce:
- Create a course
- Have at least one student with ID number enrolled in a course
- Have at least one grade item with null ID number (e.g. by creating a workshop activity)
- Go to Grades > Export > XML file
- Press download
- Expected: Grade export completes successfully.
- Actual: The following error occurs
Exception - Argument 1 passed to grade_export_xml::xml_export_idnumber() must be of the type string, null given, called in [dirroot]/grade/export/xml/grade_export_xml.php on line 99
More information about this error
×Debug info:
Error code: generalexceptionmessage
×Stack trace:
line 32 of /grade/export/xml/grade_export_xml.php: TypeError thrown
line 99 of /grade/export/xml/grade_export_xml.php: call to grade_export_xml::xml_export_idnumber()
line 61 of /grade/export/xml/export.php: call to grade_export_xml->print_grades()
- is a regression caused by
-
MDL-71016 Export user grades as XML doesn't encode user or grade idnumbers
- Closed