mirrored from git://git.moodle.org/moodle.git
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDL-30006 Workshop / Number of errors grading: force graders to actua…
…lly answer the form 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.
- Loading branch information
Showing
2 changed files
with
7 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters