Use specific company_id column name in user search

This commit is contained in:
snipe 2017-12-11 22:50:55 -08:00
parent 5ee6e7f94b
commit 5b00a8ae33

View file

@ -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')) {