diff options
author | Stan Hu <stanhu@gmail.com> | 2015-08-21 07:33:00 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2015-08-21 23:47:56 +0300 |
commit | 3715a0f29b6758b3075abb6f28ee24c4eb8ed427 (patch) | |
tree | 96675d33d770fd308c535a11bde4dad40cefadb0 /app/assets/javascripts/users_select.js.coffee | |
parent | 55fc58bda4a5592f2f8deaecec9526fbe4eecd6f (diff) |
Fix bug preventing invite by e-mail
This was broken in 70f5291808 as a result of introducing the ability to filter by current user.
Closes #2320
Diffstat (limited to 'app/assets/javascripts/users_select.js.coffee')
-rw-r--r-- | app/assets/javascripts/users_select.js.coffee | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/assets/javascripts/users_select.js.coffee b/app/assets/javascripts/users_select.js.coffee index aeeed9ca3cc..9157562a5c5 100644 --- a/app/assets/javascripts/users_select.js.coffee +++ b/app/assets/javascripts/users_select.js.coffee @@ -6,6 +6,7 @@ class @UsersSelect $('.ajax-users-select').each (i, select) => @projectId = $(select).data('project-id') @groupId = $(select).data('group-id') + @showCurrentUser = $(select).data('current-user') showNullUser = $(select).data('null-user') showAnyUser = $(select).data('any-user') showEmailUser = $(select).data('email-user') @@ -108,6 +109,7 @@ class @UsersSelect active: true project_id: @projectId group_id: @groupId + current_user: @showCurrentUser dataType: "json" ).done (users) -> callback(users) |