From 4ef307e8e7d47d563b0ccf33fb3bfc474c07fef5 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Thu, 7 Apr 2022 17:20:46 +0300 Subject: [PATCH] email to case, carry over lead --- client/src/views/email/detail.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/src/views/email/detail.js b/client/src/views/email/detail.js index 4c15d6879c..eeac81b6cd 100644 --- a/client/src/views/email/detail.js +++ b/client/src/views/email/detail.js @@ -228,6 +228,10 @@ define('views/email/detail', ['views/detail', 'email-helper'], function (Dep, Em attributes.accountName = accountName || accountId; } } + else if (parentType === 'Lead') { + attributes.leadId = parentId; + attributes.leadName = parentName; + } } attributes.emailsIds = [this.model.id];