mirror of
https://github.com/snipe/snipe-it.git
synced 2026-02-05 10:55:38 +00:00
Remove loading user count since we don’t use it for depts
This commit is contained in:
@ -40,7 +40,7 @@ class DepartmentsController extends Controller
|
||||
'departments.image',
|
||||
'departments.tag_color',
|
||||
'departments.notes'
|
||||
])->with('users')->with('location')->with('manager')->with('company')->withCount('users as users_count');
|
||||
])->with('location')->with('manager')->with('company')->withCount('users as users_count');
|
||||
|
||||
if ($request->filled('search')) {
|
||||
$departments = $departments->TextSearch($request->input('search'));
|
||||
|
||||
Reference in New Issue
Block a user