Skip to content
Snippets Groups Projects
Commit b2b3fb6c authored by Phil Hughes's avatar Phil Hughes
Browse files

Revert change to search all users

parent e0f3e44b
No related branches found
No related tags found
1 merge request!4564Revert change to search all users
Loading
Loading
@@ -95,7 +95,7 @@ class @UsersSelect
data: (term, callback) =>
isAuthorFilter = $('.js-author-search')
 
@users term, term is '' and isAuthorFilter, (users) =>
@users term, (users) =>
if term.length is 0
showDivider = 0
 
Loading
Loading
@@ -221,7 +221,7 @@ class @UsersSelect
multiple: $(select).hasClass('multiselect')
minimumInputLength: 0
query: (query) =>
@users query.term, @projectId?, (users) =>
@users query.term, (users) =>
data = { results: users }
 
if query.term.length == 0
Loading
Loading
@@ -304,7 +304,7 @@ class @UsersSelect
 
# Return users list. Filtered by query
# Only active users retrieved
users: (query, fromProject, callback) =>
users: (query, callback) =>
url = @buildUrl(@usersPath)
 
$.ajax(
Loading
Loading
@@ -313,7 +313,7 @@ class @UsersSelect
search: query
per_page: 20
active: true
project_id: @projectId if fromProject
project_id: @projectId
group_id: @groupId
current_user: @showCurrentUser
author_id: @authorId
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment