From 59bf7d5a7acdc9332e648d11de1f9a4bcc9c8b0b Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Mon, 4 Jul 2022 11:45:21 +0300 Subject: [PATCH] ref --- client/modules/crm/src/views/call/fields/leads.js | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/client/modules/crm/src/views/call/fields/leads.js b/client/modules/crm/src/views/call/fields/leads.js index abcfc5141b..541175627f 100644 --- a/client/modules/crm/src/views/call/fields/leads.js +++ b/client/modules/crm/src/views/call/fields/leads.js @@ -26,17 +26,24 @@ * these Appropriate Legal Notices must retain the display of the "EspoCRM" word. ************************************************************************/ -Espo.define('crm:views/call/fields/leads', 'crm:views/meeting/fields/attendees', function (Dep) { +define('crm:views/call/fields/leads', ['crm:views/meeting/fields/attendees', 'crm:views/call/fields/contacts'], +function (Dep, Contacts) { return Dep.extend({ getAttributeList: function () { - var list = Dep.prototype.getAttributeList.call(this); + let list = Dep.prototype.getAttributeList.call(this); + list.push('phoneNumbersMap'); + return list; }, getDetailLinkHtml: function (id, name) { + return Contacts.prototype.getDetailLinkHtml.call(this, id, name); + }, + + getDetailLinkHtml1: function (id, name) { var html = Dep.prototype.getDetailLinkHtml.call(this, id, name); var key = this.foreignScope + '_' + id; @@ -56,8 +63,6 @@ Espo.define('crm:views/call/fields/leads', 'crm:views/meeting/fields/attendees', } return html; - } - + }, }); - });