I've noticed something weird. When you lock a grade, you also lock every future attempt for a student's assignment.
We would like to lock a grade for an attempt. Let's say a student receives these grades for an assignment:
- First attempt: 3.4
- Second attempt: 5.3
- Third attempt: 4.7
- Fourth attempt: OPEN
So we would like to lock the grade for a specific attempt. But when doing so, for example in mdl_grade_grades, we notice you lock the entire assignment. The student can no longer be graded in the assignment grading interface. Reopening a new attempt doesn't matter: no new grade can be entered.
How do we lock the grade for attempt 1, 2 & 3 but still let the student be graded in his fourth attempt?