Skip to content

Commit ba0184c

Browse files
committed
User: Optimization not to load all users if not necessary -refs BT#21339
1 parent 3934edb commit ba0184c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

main/admin/add_users_to_usergroup.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,9 @@ function change_select(reset) {
287287
$user_with_any_group = !empty($_REQUEST['user_with_any_group']);
288288
$user_list = [];
289289

290-
$user_list = UserManager::getUserListLike($conditions, $order, true, 'OR');
290+
if (!(!$showAllStudentByDefault && !isset($_POST['firstLetterUser']) && !isset($_REQUEST['active_users'])) && !$user_with_any_group) {
291+
$user_list = UserManager::getUserListLike($conditions, $order, true, 'OR');
292+
}
291293

292294
if ($user_with_any_group) {
293295
$new_user_list = [];

0 commit comments

Comments
 (0)