Trim whitespace when inviting a new user by email
This commit is contained in:
parent
ea6e4f6594
commit
f8d11e8216
2 changed files with 6 additions and 1 deletions
|
@ -592,7 +592,7 @@ function UsersSelect(currentUser, els, options = {}) {
|
|||
if (showEmailUser && data.results.length === 0 && query.term.match(/^[^@]+@[^@]+$/)) {
|
||||
var trimmed = query.term.trim();
|
||||
emailUser = {
|
||||
name: "Invite \"" + query.term + "\" by email",
|
||||
name: "Invite \"" + trimmed + "\" by email",
|
||||
username: trimmed,
|
||||
id: trimmed,
|
||||
invite: true
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
title: Trim whitespace when inviting a new user by email
|
||||
merge_request: 22119
|
||||
author: Jacopo Beschi @jacopo-beschi
|
||||
type: fixed
|
Loading…
Reference in a new issue