Improved reply recipients on phone article.
This commit is contained in:
parent
80ab16a2d3
commit
fa83de523e
2 changed files with 4 additions and 3 deletions
|
@ -932,7 +932,7 @@ class App.Utils
|
|||
|
||||
# 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(/@/)
|
||||
if (articleNew.to && !articleNew.to.match(/@/)) || !articleNew.to
|
||||
articleNew.to = ticket.customer.email
|
||||
|
||||
return articleNew
|
||||
|
|
|
@ -1814,7 +1814,7 @@ test('check getRecipientArticle format', function() {
|
|||
},
|
||||
}
|
||||
result = {
|
||||
to: '',
|
||||
to: customer.email,
|
||||
cc: '',
|
||||
body: '',
|
||||
in_reply_to: 'message_id2',
|
||||
|
@ -1839,6 +1839,7 @@ test('check getRecipientArticle format', function() {
|
|||
sender: {
|
||||
name: 'Agent',
|
||||
},
|
||||
from: 'article_created_by@example.com',
|
||||
created_by: {
|
||||
login: 'login',
|
||||
firstname: 'firstname',
|
||||
|
@ -1847,7 +1848,7 @@ test('check getRecipientArticle format', function() {
|
|||
},
|
||||
}
|
||||
result = {
|
||||
to: '',
|
||||
to: customer.email,
|
||||
cc: '',
|
||||
body: '',
|
||||
in_reply_to: 'message_id3',
|
||||
|
|
Loading…
Reference in a new issue