From c8fb10e1b5d1fe3a1a2e56e1e23aaa898433960c Mon Sep 17 00:00:00 2001 From: Rolf Schmidt Date: Fri, 21 Jul 2017 15:02:16 +0200 Subject: [PATCH] Revert "Fixed issue #986 - Zammad sends reply to itself." This reverts commit 084ef3f50dd31b6898ef08097b9d6c35ae4e5bb1. --- .../app/controllers/ticket_zoom/article_actions.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/app/controllers/ticket_zoom/article_actions.coffee b/app/assets/javascripts/app/controllers/ticket_zoom/article_actions.coffee index ad9f73d79..df150405a 100644 --- a/app/assets/javascripts/app/controllers/ticket_zoom/article_actions.coffee +++ b/app/assets/javascripts/app/controllers/ticket_zoom/article_actions.coffee @@ -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