Add a variable to better control the selected user's ids
This commit is contained in:
parent
39b0dc136c
commit
a419a690d4
1 changed files with 2 additions and 1 deletions
|
@ -34,7 +34,8 @@ class BulkUsersController extends Controller
|
||||||
// Make sure there were users selected
|
// Make sure there were users selected
|
||||||
if (($request->filled('ids')) && (count($request->input('ids')) > 0)) {
|
if (($request->filled('ids')) && (count($request->input('ids')) > 0)) {
|
||||||
// Get the list of affected users
|
// 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();
|
->with('groups', 'assets', 'licenses', 'accessories')->get();
|
||||||
|
|
||||||
if ($request->input('bulk_actions') == 'edit') {
|
if ($request->input('bulk_actions') == 'edit') {
|
||||||
|
|
Loading…
Add table
Reference in a new issue