Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.2.5, 2.3.2, 2.4
-
MOODLE_22_STABLE, MOODLE_23_STABLE, MOODLE_24_STABLE
-
MOODLE_22_STABLE, MOODLE_23_STABLE
-
Description
The code in is_manual_grade_in_range in question/behaviour/behaviourbase.php uses optional_param(... PARAM_FLOAT) which does not cope with numbers like 0,50. It should be using code like the PARAM_MARK case of get_submitted_var in question/engine/questionattempt.php
Note that, because of the nature of this bug, the symptoms are very mild, I think that the worst that could happen in that if a teacher types 1,5 into the manual grade box for a question with maximum grade 1, then they will see a low-level DB exception, rather than a nice validation error in the UI.