-
Bug
-
Resolution: Fixed
-
Major
-
3.11.7, 4.0, 4.0.1
-
MOODLE_311_STABLE, MOODLE_400_STABLE
-
MOODLE_311_STABLE, MOODLE_400_STABLE
-
When I try to create a quiz with those manual completion condition:
- Student must view this activity to complete it
- Student must receive a grade to complete this activity
- Student must receive a passing grade to complete this activity
And Grade to pass is set to empty, it will bypass the validation of the form.
When submit the form, the error will be thrown:
Exception - Argument 1 passed to grade_floatval() must be of the type float or null, string given, called in [dirroot]\course\moodleform_mod.php on line 496
It doesn't happen if the grade to pass is 0.
- has a non-specific relationship to
-
MDL-52206 Move "Require passing grade" completion option to core
- Closed
- is a regression caused by
-
MDL-73824 Decimal comma & PHP8.0
- Closed
- is duplicated by
-
MDL-74625 Creating Assignment with receive a passing grade to complete this activity: Exception - grade_floatval(): Argument #1 ($number)
- Closed