-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
3.9.3
-
MOODLE_39_STABLE
Database entries for group submissions do not seem to have the latest flag correctly set.
Instead it seems like the flag is always set on the first attempt.
This leads to functions using said bit to not get the latest attempt.
Also see https://tracker.moodle.org/browse/MDL-70110?focusedCommentId=824569&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-824569 for an excerpt from the database. That issues setup part of the testing instructions can also be expanded by submitting another attempt after grading the first to get the desired database state.
While the function in the linked issue does not currently use the latest flag it could also be simplified to use it.
Update: When the attempt is reopened the latest flag (assign_submission) will be updated for each user in the group, but the group entry (with an id of 0) will not.
How to replicate the issue
- As an admin, create a course.
- Enroll a student and a teacher.
- Create a group, and add the student.
- Create an assignment with "Students submit in groups" -> Yes and "Additional attempts" -> Manually
- As the Student, go to the Assignment and submit any file.
- As the Teacher got to assignment and click on 'View all submissions'
- In the submission list, 'Edit' -> 'Allow another attempt' in the Student's submission row.
- As Student A, go to the Assignment -> 'Add a new attempt' and submit a new file.
- The record for second attempt is not set "1" as latest.
- has a non-specific relationship to
-
MDL-58697 Inconsistent view for assignment switched from group submission to non-group submission
-
- Closed
-
-
MDL-70480 get_user_submission susceptible to race condition resulting in invalid DB state
-
- Closed
-
-
MDL-62902 Ensure assignment submission is marked as latest
-
- Closed
-