From 98d9596084ddd574ffd631fff322b15441da966d Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Thu, 17 Mar 2016 08:32:06 +0100 Subject: [PATCH] Fixed not always shown "reply all" feature. --- .../ticket_zoom/article_actions.coffee | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 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 7e651b321..7713a8f3a 100644 --- a/app/assets/javascripts/app/controllers/ticket_zoom/article_actions.coffee +++ b/app/assets/javascripts/app/controllers/ticket_zoom/article_actions.coffee @@ -77,24 +77,19 @@ class App.TicketZoomArticleActions extends App.Controller href: '#' } recipients = [] - if article.sender.name is 'Agent' - if article.to - localRecipients = emailAddresses.parseAddressList(article.to) - if localRecipients - recipients = recipients.concat localRecipients - else - if article.to - localRecipients = emailAddresses.parseAddressList(article.to) - if localRecipients - recipients = recipients.concat localRecipients + if article.sender.name is 'Customer' if article.from localRecipients = emailAddresses.parseAddressList(article.from) if localRecipients - recipients = recipients.concat localRecipients + recipients.push recipients.concat localRecipients + if article.to + localRecipients = emailAddresses.parseAddressList(article.to) + if localRecipients + recipients.push recipients.concat localRecipients if article.cc localRecipients = emailAddresses.parseAddressList(article.cc) if localRecipients - recipients = recipients.concat localRecipients + recipients.push recipients.concat localRecipients if recipients.length > 1 actions.push { name: 'reply all'