Details
-
Type:
Bug
-
Status: Development in progress
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 3.9.2
-
Fix Version/s: None
-
Component/s: Assignment, Web Services
-
Labels:
Description
In MDL-68605 I tried to fix mod_assign_get_submissions not returning group submissions. While I did fix it, that fix only works as long as you have 0 or 1 group submissions. As soon as there are more than that the webservice function will only return one of the group submissions seemingly at random.
That's because in https://github.com/moodle/moodle/blob/58ba94a7290940391d1581e591a64fc7e6bb410a/mod/assign/externallib.php#L757-L765 we get the latest attempt for each user. Since group submissions all have a userid of 0, all but one of them are discarded here.