Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.9.5
-
Component/s: Accessibility, Gradebook
-
Labels:None
-
Affected Branches:MOODLE_19_STABLE
-
Fixed Branches:MOODLE_19_STABLE, MOODLE_20_STABLE
Description
There is a problem with some validation of item fields on grade category editing, because the php function "empty($var)" return true if we have the string "0". This patch corrects this problem, adding an extra test, "AND $var != '0'".
This patch also affects the way grademin and grademax are validated, correcting the behaviour in the scenario that both values are zero.
Thanks for the report and the solution, Daniel!