#1193 - quote name for special character.

This commit is contained in:
Denny Bresch 2017-09-06 16:17:58 +02:00
parent 9ef4d3090d
commit fd077ef8c9

View file

@ -113,6 +113,10 @@ class App.ObjectOrganizationAutocompletion extends App.Controller
@createToken name, objectId
else
if object.email
# quote name for special character
if name.match(/\@|,|;|\^|\+|#|§|\$|%|&|\/|\(|\)|=|\?|!|\*|\[|\]/)
name = "\"#{name}\""
name += " <#{object.email}>"
@objectSelect.val(name)