-
Bug
-
Resolution: Fixed
-
Minor
-
2.3.2
-
MOODLE_23_STABLE
-
MOODLE_23_STABLE, MOODLE_24_STABLE
-
MDL-36412-master -
I noted that, when adding a grade condition in conditional activities, it is possible to:
- set percentage values less than 0%
- set percentage values greater than 100%
- set the "must be at least" value to be the same as the "and less than" value.
The first two of these two possibilities are possibly acceptable under some unusual circumstances. Certainly, if the values were constrained to be between 0 and 100%, someone would come up with a case where this is not appropriate.
For the final possibility, this is a boundary condition. I couldn't find the place where this is actually evaluated in code, but from reading the labels, if the two values are the same, it seems that you could create a condition that a student could never meet. If I am wrong, please correct me, but if not, the validation should probably change so that it does not allow this impossible range.