mirror of
https://github.com/moodle/moodle.git
synced 2025-03-18 22:50:19 +01:00
MDL-78650 mod_assign: Improve group submission action event handling
Don't return an event action when a group submission has already been submitted by another student.
This commit is contained in:
parent
686d9cfd4c
commit
116eef7a25
@ -1613,6 +1613,14 @@ function mod_assign_core_calendar_provide_event_action(calendar_event $event,
|
||||
return null;
|
||||
}
|
||||
|
||||
$instance = $assign->get_instance();
|
||||
if ($instance->teamsubmission && !$instance->requireallteammemberssubmit) {
|
||||
$groupsubmission = $assign->get_group_submission($userid, 0, false);
|
||||
if ($groupsubmission && $groupsubmission->status === ASSIGN_SUBMISSION_STATUS_SUBMITTED) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
$participant = $assign->get_participant($userid);
|
||||
|
||||
if (!$participant) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user