mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
More eager loading
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
9f1e59cf78
commit
59f66051f8
|
@ -42,7 +42,7 @@ class BulkUsersController extends Controller
|
||||||
// Get the list of affected users
|
// Get the list of affected users
|
||||||
$user_raw_array = request('ids');
|
$user_raw_array = request('ids');
|
||||||
$users = User::whereIn('id', $user_raw_array)
|
$users = User::whereIn('id', $user_raw_array)
|
||||||
->with('groups', 'assets', 'licenses', 'accessories')->get();
|
->with('assets', 'manager', 'userlog', 'licenses', 'consumables', 'accessories', 'managedLocations','uploads', 'acceptances')->get();
|
||||||
|
|
||||||
// bulk edit, display the bulk edit form
|
// bulk edit, display the bulk edit form
|
||||||
if ($request->input('bulk_actions') == 'edit') {
|
if ($request->input('bulk_actions') == 'edit') {
|
||||||
|
|
Loading…
Reference in a new issue