From 47120f058537066e6faf6a655181018519e947f4 Mon Sep 17 00:00:00 2001 From: Billy Zhou Date: Tue, 23 Oct 2018 01:15:54 +0800 Subject: [PATCH] Fixed regression introduced by 8fb46b0448 where replying to a phone ticket no longer works --- app/assets/javascripts/app/lib/app_post/utils.coffee | 2 +- public/assets/tests/html_utils.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/app/lib/app_post/utils.coffee b/app/assets/javascripts/app/lib/app_post/utils.coffee index e7392119b..8eb83c257 100644 --- a/app/assets/javascripts/app/lib/app_post/utils.coffee +++ b/app/assets/javascripts/app/lib/app_post/utils.coffee @@ -1028,7 +1028,7 @@ class App.Utils # the article we are replying to is an incoming call 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 # customers email via customer user diff --git a/public/assets/tests/html_utils.js b/public/assets/tests/html_utils.js index c105987f4..e7ecd85eb 100644 --- a/public/assets/tests/html_utils.js +++ b/public/assets/tests/html_utils.js @@ -2944,7 +2944,7 @@ test('check getRecipientArticle format', function() { sender: { name: 'Customer', }, - from: article_customer.email, + from: 'article lastname ', to: 'some group', message_id: 'message_id22', created_by: {