From 084ef3f50dd31b6898ef08097b9d6c35ae4e5bb1 Mon Sep 17 00:00:00 2001 From: Rolf Schmidt Date: Tue, 18 Jul 2017 13:51:26 +0200 Subject: [PATCH] Fixed issue #986 - Zammad sends reply to itself. --- .../app/controllers/ticket_zoom/article_actions.coffee | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 df150405a..ad9f73d79 100644 --- a/app/assets/javascripts/app/controllers/ticket_zoom/article_actions.coffee +++ b/app/assets/javascripts/app/controllers/ticket_zoom/article_actions.coffee @@ -336,8 +336,7 @@ class App.TicketZoomArticleActions extends App.Controller articleNew.to = ticket.customer.email else - user = App.User.find(article.created_by_id) - if article.sender.name is 'Agent' && !article.from.match(user.email) + if article.sender.name is 'Agent' articleNew.to = article.to else if article.reply_to