Commit 3102454a authored by Douwe Maan's avatar Douwe Maan

Don't show Unassigned in user select when searching.

parent 2f4656b5
...@@ -11,14 +11,15 @@ class @ProjectUsersSelect ...@@ -11,14 +11,15 @@ class @ProjectUsersSelect
Api.projectUsers project_id, query.term, (users) -> Api.projectUsers project_id, query.term, (users) ->
data = { results: users } data = { results: users }
nullUser = { if query.term.length == 0
name: 'Unassigned', nullUser = {
avatar: null, name: 'Unassigned',
username: 'none', avatar: null,
id: -1 username: 'none',
} id: -1
}
data.results.unshift(nullUser)
data.results.unshift(nullUser)
query.callback(data) query.callback(data)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment