Set recipient if I’m sender.

This commit is contained in:
Martin Edenhofer 2017-02-15 03:43:18 +01:00
parent e497bd0105
commit 55ce60298b

View file

@ -328,7 +328,8 @@ class App.TicketZoomArticleActions extends App.Controller
articleNew.to = ticket.customer.email
else
if article.sender.name is 'Agent'
user = App.User.find(article.created_by_id)
if article.sender.name is 'Agent' && !article.from.match(user.email)
articleNew.to = article.to
else
articleNew.to = article.from