Skip to content
Snippets Groups Projects
Commit f187315b authored by ntozier's avatar ntozier Committed by GitHub
Browse files

Fix for LDAP/AD auth plugin

removed:
87: ->annotate(array('__relevance__' => new SqlCode(1)))

This fixes Lookup Create new User Search on open ticket.
parent 11de92f7
No related branches found
No related tags found
No related merge requests found
......@@ -83,8 +83,7 @@ class UsersAjaxAPI extends AjaxController {
// Omit already-imported remote users
if ($emails = array_filter($emails)) {
$users->union(User::objects()
->values_flat('id', 'name', 'default_email__address')
->annotate(array('__relevance__' => new SqlCode(1)))
->values_flat('id', 'name', 'default_email__address')
->filter(array(
'emails__address__in' => $emails
)));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment