Fixed regression introduced by 8fb46b0448 where replying to a phone ticket no longer works

This commit is contained in:
Billy Zhou 2018-10-23 01:15:54 +08:00 committed by Martin Edenhofer
parent 5492f4f24f
commit 47120f0585
2 changed files with 2 additions and 2 deletions

View file

@ -1028,7 +1028,7 @@ class App.Utils
# the article we are replying to is an incoming call # the article we are replying to is an incoming call
else if article.from?.match(/@/) else if article.from?.match(/@/)
articleNew.to = article.from articleNew.to = App.Utils.parseAddressListLocal(article.from).join(', ')
# if sender is customer but in article.from is no email, try to get # if sender is customer but in article.from is no email, try to get
# customers email via customer user # customers email via customer user

View file

@ -2944,7 +2944,7 @@ test('check getRecipientArticle format', function() {
sender: { sender: {
name: 'Customer', name: 'Customer',
}, },
from: article_customer.email, from: 'article lastname <article_customer@example.com>',
to: 'some group', to: 'some group',
message_id: 'message_id22', message_id: 'message_id22',
created_by: { created_by: {