Skip to content

Commit

Permalink
Potential fix for unenrollments not happening
Browse files Browse the repository at this point in the history
  • Loading branch information
rrusso committed Feb 3, 2024
1 parent 1497795 commit 74ae443
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion enrol/ues/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -1068,7 +1068,11 @@ public function handle_pending_sections($sections) {

$class = 'ues_' . $type;

$params = ues::where()->sectionid->equal($section->id)->status->in(ues::ENROLLED, ues::UNENROLLED);
$params = ues::where()->sectionid->equal($section->id)->status->in(
ues::ENROLLED,
ues::PROCESSED,
ues::PENDING,
ues::UNENROLLED);

$users = $class::get_all($params);
$this->unenroll_users($group, $users);
Expand Down

0 comments on commit 74ae443

Please sign in to comment.