From db645b15c4d1e339ee1240c182c8ca9de309d9a6 Mon Sep 17 00:00:00 2001 From: Jared Hancock <jared@osticket.com> Date: Wed, 19 Aug 2015 12:57:28 -0500 Subject: [PATCH] orgs: Show user search box adding user to org --- include/ajax.orgs.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/include/ajax.orgs.php b/include/ajax.orgs.php index ea7dc6f14..bcc44f25c 100644 --- a/include/ajax.orgs.php +++ b/include/ajax.orgs.php @@ -123,9 +123,8 @@ class OrgsAjaxAPI extends AjaxController { $info['action'] = '#orgs/'.$org->getId().'/add-user'; $info['onselect'] = 'ajax.php/orgs/'.$org->getId().'/add-user/'; - $info['lookup'] = false; - if (AuthenticationBackend::getSearchDirectories()) - $info['lookup'] = 'remote'; + if (!AuthenticationBackend::getSearchDirectories()) + $info['lookup'] = 'local'; if ($_POST) { if ($_POST['id']) { //Existing useer -- GitLab