mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-11 05:47:28 -08:00
Use specific company_id column name in user search
This commit is contained in:
parent
5ee6e7f94b
commit
5b00a8ae33
|
@ -68,11 +68,11 @@ class UsersController extends Controller
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($request->has('company_id')) {
|
if ($request->has('company_id')) {
|
||||||
$users = $users->where('company_id', '=', $request->input('company_id'));
|
$users = $users->where('users.company_id', '=', $request->input('company_id'));
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($request->has('location_id')) {
|
if ($request->has('location_id')) {
|
||||||
$users = $users->where('location_id', '=', $request->input('location_id'));
|
$users = $users->where('users.location_id', '=', $request->input('location_id'));
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($request->has('group_id')) {
|
if ($request->has('group_id')) {
|
||||||
|
|
Loading…
Reference in a new issue