Set recipient if I’m sender.
This commit is contained in:
parent
e497bd0105
commit
55ce60298b
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue