Don't show Unassigned in user select when searching.
This commit is contained in:
parent
2f4656b5c7
commit
3102454a56
|
@ -11,14 +11,15 @@ class @ProjectUsersSelect
|
|||
Api.projectUsers project_id, query.term, (users) ->
|
||||
data = { results: users }
|
||||
|
||||
nullUser = {
|
||||
name: 'Unassigned',
|
||||
avatar: null,
|
||||
username: 'none',
|
||||
id: -1
|
||||
}
|
||||
if query.term.length == 0
|
||||
nullUser = {
|
||||
name: 'Unassigned',
|
||||
avatar: null,
|
||||
username: 'none',
|
||||
id: -1
|
||||
}
|
||||
|
||||
data.results.unshift(nullUser)
|
||||
data.results.unshift(nullUser)
|
||||
|
||||
query.callback(data)
|
||||
|
||||
|
|
Loading…
Reference in New Issue