-
Bug
-
Resolution: Fixed
-
Major
-
5.0
-
MOODLE_500_STABLE
-
MOODLE_500_STABLE
-
MDL-85058_main -
-
-
Steps to reproduce:
- Follow the testing instructions of
MDL-80984until section "Testing: Penalty implementation on an assignment" (included). - Change the language to Catalan or any language which does not use a period as decimal separator.
- Go to the gradebook.
The following exception is displayed:
Excepció - number_format(): Argument #1 ($num) must be of type float, string given
The cause of the exception is in this function, which calls format_float twice for the same value: https://github.com/moodle/moodle/blob/main/grade/classes/output/penalty_indicator.php#L74
- caused a regression
-
MDL-80984 Implement generic penalties in Gradebook
-
- Closed
-