-
Bug
-
Resolution: Fixed
-
Minor
-
2.5.3, 2.6
-
MOODLE_25_STABLE, MOODLE_26_STABLE
-
MOODLE_25_STABLE, MOODLE_26_STABLE, MOODLE_27_STABLE
-
MDL-43071-master -
-
Grades importing when non-numeric scale in use does not work. The problem is in scale options conversion used in offline grades upload form and its processing. More precisely, values are not trimmed, so "A, B, C, D" scale is converted into array of:
1 => A,
|
2 => <space>B,
|
3 => <space>C,
|
4 => <space>D
|
Which in turn misleads the importing check done by array_search function that finds if csv file grades matches the scale.
Notice that using space after comma is suggested in the scale field help on scale editing page. Defining scale with no spaces is workaround, but ideally trimming needs to be implemented rather help file changes and existing scale definition fields upgrade.