mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-10 07:34:06 -08:00
Better fix for location LDAP sync
This commit is contained in:
parent
3b247ba31f
commit
66ad0f1d4c
|
@ -1221,7 +1221,7 @@ class UsersController extends Controller
|
|||
$user->email = e($item["email"]);
|
||||
$user->employee_num = e($item["employee_number"]);
|
||||
$user->activated = 1;
|
||||
if ($request->has('location_id')) {
|
||||
if ($request->input('location_id')!='') {
|
||||
$user->location_id = e($request->input('location_id'));
|
||||
}
|
||||
$user->notes = 'Imported from LDAP';
|
||||
|
|
Loading…
Reference in a new issue