mirror of
https://github.com/moodle/moodle.git
synced 2025-02-13 12:34:28 +01:00
QuickForms do not distinguish non-checked radio from the checked radio with the value "0". So we map the database grade value "0" to a value "-1" when displaying the form and vice versa when saving the form. This allowed us to have none radios checked by default and force the grader to actually answer the form themselves, using the 'required' rule.