-
Bug
-
Resolution: Fixed
-
Major
-
2.9.2, 2.9.3, 3.0.4, 3.1
-
MOODLE_29_STABLE, MOODLE_30_STABLE, MOODLE_31_STABLE
-
MOODLE_30_STABLE, MOODLE_31_STABLE
-
MDL-51806_master -
-
3.2 Sprint 1
New changes to workshop activity in recent Moodle versions introduced a locale-related bug in the settings form.
To reproduce:
- Change Moodle user interface language to one using comma as a decimal separator (like catalan, in my case)
- Set up a new workshop
- Edit workshop settings. Moodle automatically fills the "Submission grade to pass" and "Assessment grade to pass" fields with the values stored in the database, using 2 decimal places
- Try to save the settings. Save fails with Moodle complaining about requiring a number on the two aforementioned fields.
- Works correctly when using english GUI. Apparently numbers are set up on the form using correct locale settings, but they are not parsed correctly when saving the form.
- This is a very annoying bug because every time you edit settings again, numeric fields are filled using locale settings, so if your locale uses a comma as a decimal separator, you will not be able to save the form until you change manually the commas to points.