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
Branches
Tags
1 merge request!4564Revert change to search all users
Loading
@@ -95,7 +95,7 @@ class @UsersSelect
Loading
@@ -95,7 +95,7 @@ class @UsersSelect
data: (term, callback) => data: (term, callback) =>
isAuthorFilter = $('.js-author-search') isAuthorFilter = $('.js-author-search')
   
@users term, term is '' and isAuthorFilter, (users) => @users term, (users) =>
if term.length is 0 if term.length is 0
showDivider = 0 showDivider = 0
   
Loading
@@ -221,7 +221,7 @@ class @UsersSelect
Loading
@@ -221,7 +221,7 @@ class @UsersSelect
multiple: $(select).hasClass('multiselect') multiple: $(select).hasClass('multiselect')
minimumInputLength: 0 minimumInputLength: 0
query: (query) => query: (query) =>
@users query.term, @projectId?, (users) => @users query.term, (users) =>
data = { results: users } data = { results: users }
   
if query.term.length == 0 if query.term.length == 0
Loading
@@ -304,7 +304,7 @@ class @UsersSelect
Loading
@@ -304,7 +304,7 @@ class @UsersSelect
   
# Return users list. Filtered by query # Return users list. Filtered by query
# Only active users retrieved # Only active users retrieved
users: (query, fromProject, callback) => users: (query, callback) =>
url = @buildUrl(@usersPath) url = @buildUrl(@usersPath)
   
$.ajax( $.ajax(
Loading
@@ -313,7 +313,7 @@ class @UsersSelect
Loading
@@ -313,7 +313,7 @@ class @UsersSelect
search: query search: query
per_page: 20 per_page: 20
active: true active: true
project_id: @projectId if fromProject project_id: @projectId
group_id: @groupId group_id: @groupId
current_user: @showCurrentUser current_user: @showCurrentUser
author_id: @authorId 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