Revert change to search all users
This commit is contained in:
parent
e0f3e44b3e
commit
b2b3fb6c01
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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(
|
||||
|
@ -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…
Reference in a new issue