EspoCRM – Open Source CRM Application
PHP calendarcontactscrmcrm-platformcrm-systemcustomer-portalcustomer-supportcustomizabledocumentsemail-marketingkanbanleadsopen-sourcephpplatformsales-automationsingle-page-applicationsupport
phone/email fields details
Yuri Kuznetsovce6abcd3f0c3
diff --git a/client/src/views/admin/field-manager/modals/view-details.js b/client/src/views/admin/field-manager/modals/view-details.jsindex 918e9ec19e..c0bf835996 100644--- a/client/src/views/admin/field-manager/modals/view-details.js+++ b/client/src/views/admin/field-manager/modals/view-details.js@@ -201,6 +201,7 @@ export default class ViewDetailsModalView extends ModalView {{name: this.field + 'Name',type: 'string',+ notStorable: true,readOnly: true,},];@@ -428,6 +429,41 @@ export default class ViewDetailsModalView extends ModalView {];}+ if (this.fieldType === 'email') {+ return [+ {+ name: this.field,+ type: 'string',+ notStorable: this.fieldDefs.notStorable || false,+ readOnly: this.fieldDefs.readOnly || false,+ },+ {+ name: this.field + 'Data',+ type:+ '{emailAddress: string, lower: string, primary: boolean, optOut: boolean, invalid: boolean}[]',+ notStorable: this.fieldDefs.notStorable || false,+ readOnly: this.fieldDefs.readOnly || false,+ },+ ];+ }++ if (this.fieldType === 'phone') {+ return [+ {+ name: this.field,+ type: 'string',+ notStorable: this.fieldDefs.notStorable || false,+ readOnly: this.fieldDefs.readOnly || false,+ },+ {+ name: this.field + 'Data',+ type: '{phoneNumber: string, primary: boolean, optOut: boolean, invalid: boolean}[]',+ notStorable: this.fieldDefs.notStorable || false,+ readOnly: this.fieldDefs.readOnly || false,+ },+ ];+ }+return undefined;}}