-
Bug
-
Resolution: Fixed
-
Critical
-
2.9, 3.0
-
MOODLE_29_STABLE, MOODLE_30_STABLE
-
MOODLE_29_STABLE
-
MDL-50394_master -
-
Team Beards Sprint 7
This is a regression caused by MDL-13831.
When a different decimal point separator is specified for the current language, gradepass variable does not respect it and therefore an error is thrown. This happens because it is successfully being formatted according to current language, but it never gets unformatted back. Therefore, it is impossible to edit an activity.
Line 676 of course/moodleform_mod.php:
$mform->addRule('gradepass', null, 'numeric', null, 'client');
This rule always throws an error when another decimal point separator is used.
If one comments out this rule, then another error is thrown due to inability to save the value to DB, because it is not unformatted back to the float value.
Therefore either of two options to be implemented:
1) the value has to be unformatted back before rule is executed
OR
2) a) the rule should use format_float function & b) the value has to be unformatted back before saving to DB
- has been marked as being related by
-
MDL-51806 Workshop: cannot save edited settings when using comma as a decimal separator
- Closed
- is a regression caused by
-
MDL-13831 Grade to pass can't be set from update activity screen
- Closed
- is duplicated by
-
MDL-50470 Quiz: Cannot save quiz settings at all!
- Closed
-
MDL-50409 "Grade to pass" in Assignment configuration doesn't accept comma as a decimal separator
- Closed
-
MDL-50413 Saving the link triggers a warning message in the UI telling that the Grade for passing must be numeric
- Closed
- Testing discovered
-
MDL-50535 Can't save a grade to pass value for some activities when ratings not enabled
- Closed