email to case, carry over lead

This commit is contained in:
Yuri Kuznetsov
2022-04-07 17:20:46 +03:00
parent 58fca25b3e
commit 4ef307e8e7
+4
View File
@@ -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];