Revert "Fixed issue #986 - Zammad sends reply to itself."

This reverts commit 084ef3f50d.
This commit is contained in:
Rolf Schmidt 2017-07-21 15:02:16 +02:00
parent 961a5ecfa5
commit c8fb10e1b5

View file

@ -336,7 +336,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
if article.reply_to