EspoCRM – Open Source CRM Application
PHP calendarcontactscrmcrm-platformcrm-systemcustomer-portalcustomer-supportcustomizabledocumentsemail-marketingkanbanleadsopen-sourcephpplatformsales-automationsingle-page-applicationsupport
email template placeholders for fields with loaders
Yuri Kuznetsov42b703204a31
diff --git a/client/src/views/email-template/fields/insert-field.js b/client/src/views/email-template/fields/insert-field.jsindex b6b861affd..97ff0e4f21 100644--- a/client/src/views/email-template/fields/insert-field.js+++ b/client/src/views/email-template/fields/insert-field.js@@ -112,7 +112,7 @@ export default class extends BaseFieldView {return;}- const attributeList = this.getScopeAttributeList(foreignScope);+ const attributeList = this.getScopeAttributeList(foreignScope, true);attributeList.forEach(item => {entityPlaceholders[scope].push(`${link}.${item}`);@@ -142,9 +142,10 @@ export default class extends BaseFieldView {/*** @private* @param {string} scope+ * @param {boolean} [isForeign]* @return {string[]}*/- getScopeAttributeList(scope) {+ getScopeAttributeList(scope, isForeign = false) {let fieldList = this.getFieldManager().getEntityTypeFieldList(scope);let list = [];@@ -167,7 +168,7 @@ export default class extends BaseFieldView {aclDefs.internal ||fieldDefs.disabled ||fieldDefs.utility ||- fieldDefs.directAccessDisabled ||+ fieldDefs.directAccessDisabled && (isForeign || !fieldDefs.loaderClassName) ||fieldDefs.templatePlaceholderDisabled) {return false;