{"action":"created","issue":{"url":"https://api.github.com/repos/osTicket/osTicket-1.8/issues/2429","labels_url":"https://api.github.com/repos/osTicket/osTicket-1.8/issues/2429/labels{/name}","comments_url":"https://api.github.com/repos/osTicket/osTicket-1.8/issues/2429/comments","events_url":"https://api.github.com/repos/osTicket/osTicket-1.8/issues/2429/events","html_url":"https://github.com/osTicket/osTicket-1.8/issues/2429","id":101856833,"number":2429,"title":"1.9.11 - user search box doesn't appear in org view and search box only works for remote users","user":{"login":"mfelber","id":5539456,"avatar_url":"https://avatars.githubusercontent.com/u/5539456?v=3","gravatar_id":"","url":"https://api.github.com/users/mfelber","html_url":"https://github.com/mfelber","followers_url":"https://api.github.com/users/mfelber/followers","following_url":"https://api.github.com/users/mfelber/following{/other_user}","gists_url":"https://api.github.com/users/mfelber/gists{/gist_id}","starred_url":"https://api.github.com/users/mfelber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mfelber/subscriptions","organizations_url":"https://api.github.com/users/mfelber/orgs","repos_url":"https://api.github.com/users/mfelber/repos","events_url":"https://api.github.com/users/mfelber/events{/privacy}","received_events_url":"https://api.github.com/users/mfelber/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/osTicket/osTicket-1.8/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-19T10:20:12Z","updated_at":"2015-08-19T18:35:43Z","closed_at":null,"body":"I noticed that the user search box is missing in the \"org view\" (click on an org and click on \"add user\"):\r\n\r\n![userlookup1](https://cloud.githubusercontent.com/assets/5539456/9353340/e64188f6-4667-11e5-9362-e48a71459315.jpg)\r\n\r\nIn the user view the field isn't missing:\r\n\r\n![userlookup2](https://cloud.githubusercontent.com/assets/5539456/9353360/ffa744fc-4667-11e5-86aa-af6ea366d740.jpg)\r\n\r\nWhen I change the line 126 in the ajax.orgs.php from\r\n\r\n```$info['lookup'] = false;```\r\n\r\nto \r\n\r\n```$info['lookup'] = true;```\r\n\r\nthe search field will be displayed:\r\n\r\n![userlookup3](https://cloud.githubusercontent.com/assets/5539456/9353556/86672ef2-4669-11e5-87f8-17ce8ee08540.jpg)\r\n\r\nOther users seem not to have this problem. Why is this affecting only my installations?\r\n\r\nIt is depending which authentication is used? I only use local authentication. The users I have seen that are having this search box without a modification are using the ldap plugin.\r\n\r\nI have also seen that a similar change was made by the devs in april (2014) (https://github.com/osTicket/osTicket-1.8/commit/d6555add9ba9c42fc0ba7de48c6a171fa1c1eb53) for the ajax.users.php, maybe the ajax.orgs.php was missed?\r\n\r\nI also noticed that others users reported that this search box in the org view only looks for remote users:\r\n\r\nhttp://osticket.com/forum/discussion/86251/organization-adding-user-no-match-on-lookup#latest\r\n\r\nChanging line 128 in the ajax.orgs.php like in the commit from april doesn't work:\r\n\r\nI changed from ```$info['lookup'] = 'remote';``` to ```$info['lookup'] = 'local';```\r\n\r\nBut when I also change line 127 (like in the ajax.users.php) from\r\n\r\nif ```(AuthenticationBackend::getSearchDirectories())``` \r\n\r\nto \r\n\r\n```if (!AuthenticationBackend::getSearchDirectories())``` \r\n\r\nit works like the search box in the user view. This seems to be a typo (!).\r\n\r\nI don't understand much about this so maybe the devs should look at it."},"comment":{"url":"https://api.github.com/repos/osTicket/osTicket-1.8/issues/comments/132735161","html_url":"https://github.com/osTicket/osTicket-1.8/issues/2429#issuecomment-132735161","issue_url":"https://api.github.com/repos/osTicket/osTicket-1.8/issues/2429","id":132735161,"user":{"login":"mfelber","id":5539456,"avatar_url":"https://avatars.githubusercontent.com/u/5539456?v=3","gravatar_id":"","url":"https://api.github.com/users/mfelber","html_url":"https://github.com/mfelber","followers_url":"https://api.github.com/users/mfelber/followers","following_url":"https://api.github.com/users/mfelber/following{/other_user}","gists_url":"https://api.github.com/users/mfelber/gists{/gist_id}","starred_url":"https://api.github.com/users/mfelber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mfelber/subscriptions","organizations_url":"https://api.github.com/users/mfelber/orgs","repos_url":"https://api.github.com/users/mfelber/repos","events_url":"https://api.github.com/users/mfelber/events{/privacy}","received_events_url":"https://api.github.com/users/mfelber/received_events","type":"User","site_admin":false},"created_at":"2015-08-19T18:35:43Z","updated_at":"2015-08-19T18:35:43Z","body":"@greezybacon Yes, I have tried it: the patch is working fine :+1: "}}