mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-10 07:34:06 -08:00
Fixed issue sorting when viewing users by department
This commit is contained in:
parent
cf56f70b3a
commit
6fb0ef908d
|
@ -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';
|
||||
|
|
Loading…
Reference in a new issue