-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
4.0 regressions
-
4
WS API's 'gradereport_user_get_grade_items' -functions 'gradeformatted' -field's content changed when we updated Moodle from 3.11+ -> 4.0+.
The function has been returning for years just plain scale-values. For example we have "Hylätty" (Finnish for disqualified) or "Hyväksytty" (Finnish for qualified). Values are actively used also in integration logic.
After installing newest 4.0+ the function returns values with some html scrap like "<i class=\"icon fa fa-check text-success fa-fw inline\" title=\"Pass\" role=\"img\" aria-label=\"Pass\"></i>Hyväksytty"
It could be that there was put originally some unwanted formatting in the scale fields but those couldn't been seen in UI.
Unfortunately there isn't any workaround. Those values can't be modified at UI page /grade/edit/scale/edit.php because scales have been in use.
If API's behavior can't be restored or a workaround through UI can't be provided some other reliable workaround can be used (even in database if right field to be provided) if just guarantied there won't be side-effects.
- is a regression caused by
-
MDL-70874 Add pass/fail colors for grades in Gradebook user report
-
- Closed
-