Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDL-29336 Saving grade mapping table in the Workshop
The Workshop module using the "Number of errors" grading strategy did not save all items in the grade mapping table. If some assessment form fields have weight > 1, the number of possible errors is greater that the number of the assessment form fields. The previous code deleted all mappings where the number of errors was greater than the number of fields. In this patch, the maximum number of possible errors is calculated as a sum of weights of all fields. Only mappings over this maximum are deleted now.
- Loading branch information