From c9fb16b8d7c61191e7fe7335011cbd142eab6c61 Mon Sep 17 00:00:00 2001 From: Alasdair Campbell Date: Wed, 5 Nov 2014 09:57:29 +0000 Subject: [PATCH] Reply-To-All should include any recipients which are not current user --- frontend/client/src/views/email/detail.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/frontend/client/src/views/email/detail.js b/frontend/client/src/views/email/detail.js index a966b134d3..b390ccc13b 100644 --- a/frontend/client/src/views/email/detail.js +++ b/frontend/client/src/views/email/detail.js @@ -78,8 +78,15 @@ Espo.define('Views.Email.Detail', 'Views.Detail', function (Dep) { attributes['to'] = this.model.get('from'); } - if (cc && this.model.get('cc')) { + if (cc) { attributes['cc'] = this.model.get('cc'); + (this.model.get('to')).split(',').forEach(function (item) { + item = item.trim(); + if (item != this.getUser().get('emailAddress')) { + attributes['cc'] += ', ' + item; + } + }, this); + attributes['cc'] = attributes['cc'].replace(/^(\, )/,""); } if (this.model.get('parentId')) {