Add email address if not existing to address line.
This commit is contained in:
parent
84c2452f81
commit
afc241e72a
1 changed files with 5 additions and 0 deletions
|
@ -1518,6 +1518,11 @@ class ArticleView extends App.Controller
|
||||||
else
|
else
|
||||||
articleNew.to = article.from
|
articleNew.to = article.from
|
||||||
|
|
||||||
|
# if sender is customer but in article.from is no email, try to get
|
||||||
|
# customers email via customer user
|
||||||
|
if articleNew.to && !articleNew.to.match(/@/)
|
||||||
|
articleNew.to = article.created_by.email
|
||||||
|
|
||||||
# filter for uniq recipients
|
# filter for uniq recipients
|
||||||
recipientAddresses = {}
|
recipientAddresses = {}
|
||||||
recipient = emailAddresses.parseAddressList(articleNew.to)
|
recipient = emailAddresses.parseAddressList(articleNew.to)
|
||||||
|
|
Loading…
Reference in a new issue