Internal: Fix parameters order in CLPRelUserRepository::unsubscribeUsersToItem()

pull/5202/head
Yannick Warnier 9 months ago
parent b0ea898a84
commit a84ade7051
  1. 8
      public/main/lp/lp_subscribe_users.php
  2. 8
      src/CourseBundle/Repository/CLpRelUserRepository.php

@ -201,9 +201,9 @@ if ($allowUserGroups) {
$userList = $userGroup->get_users_by_usergroup($userGroupId);
$cLpRelUserRepo->unsubcribeUsersToItem(
$course,
$session,
$entity,
$userList
$userList,
$session
);
}
}
@ -253,9 +253,9 @@ if ($allowUserGroups) {
$userList = $userGroup->get_users_by_usergroup($group['id']);
$cLpRelUserRepo->unsubcribeUsersToItem(
$course,
$session,
$entity,
$userList
$userList,
$session
);
}

@ -84,9 +84,9 @@ final class CLpRelUserRepository extends ResourceRepository
if ($usersToDelete) {
$this->unsubcribeUsersToItem(
$course,
$session,
$lp,
$usersToDelete
$usersToDelete,
$session
);
}
}
@ -122,9 +122,9 @@ final class CLpRelUserRepository extends ResourceRepository
*/
public function unsubcribeUsersToItem(
Course $course,
?Session $session = null,
CLp $lp,
$usersToDelete
$usersToDelete,
?Session $session = null
): void {
$em = $this->getEntityManager();

Loading…
Cancel
Save