Merge pull request #10418 from inietov/fixes/bulk_edit_count_more_users_than_selected

Fixes bulk edit message counts more users than the actual selected users number
This commit is contained in:
snipe 2021-12-13 14:13:14 -08:00 committed by GitHub
commit 25e2e7ecc6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -34,7 +34,8 @@ class BulkUsersController extends Controller
// Make sure there were users selected
if (($request->filled('ids')) && (count($request->input('ids')) > 0)) {
// Get the list of affected users
$users = User::whereIn('id', array_keys(request('ids')))
$user_raw_array = request('ids');
$users = User::whereIn('id', $user_raw_array)
->with('groups', 'assets', 'licenses', 'accessories')->get();
if ($request->input('bulk_actions') == 'edit') {