Fixed issue sorting when viewing users by department

This commit is contained in:
snipe 2017-11-03 14:29:04 -07:00
parent cf56f70b3a
commit 6fb0ef908d

View file

@ -80,7 +80,7 @@ class UsersController extends Controller
}
if ($request->has('department_id')) {
$users = $users->where('department_id','=',$request->input('department_id'));
$users = $users->where('users.department_id','=',$request->input('department_id'));
}
$order = $request->input('order') === 'asc' ? 'asc' : 'desc';