From 66ad0f1d4ca3e51064c854918eb8066f454f88f3 Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 2 Aug 2016 03:50:08 -0700 Subject: [PATCH] Better fix for location LDAP sync --- app/Http/Controllers/UsersController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/UsersController.php b/app/Http/Controllers/UsersController.php index 691c158fad..478a84784e 100755 --- a/app/Http/Controllers/UsersController.php +++ b/app/Http/Controllers/UsersController.php @@ -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';