EspoCRM – Open Source CRM Application
PHP calendarcontactscrmcrm-platformcrm-systemcustomer-portalcustomer-supportcustomizabledocumentsemail-marketingkanbanleadsopen-sourcephpplatformsales-automationsingle-page-applicationsupport
Ref
Yuriic9c776391ada
diff --git a/client/src/views/admin/link-manager/modals/edit.js b/client/src/views/admin/link-manager/modals/edit.jsindex ba4d3d468c..60cfa7a571 100644--- a/client/src/views/admin/link-manager/modals/edit.js+++ b/client/src/views/admin/link-manager/modals/edit.js@@ -533,10 +533,12 @@ class LinkManagerEditModalView extends ModalView {this.getForeignLinkEntityTypeList(this.model.get('entity'),- this.model.get('link'), this.model.get('parentEntityTypeList') || [], true+ this.model.get('link'),+ this.model.get('parentEntityTypeList') || [],+ true).forEach(item => {- if (!~checkedList.indexOf(item)) {+ if (!checkedList.includes(item)) {checkedList.push(item);}});@@ -1207,6 +1209,14 @@ class LinkManagerEditModalView extends ModalView {this.showActionItem('saveAndContinueEditing');}+ /**+ * @private+ * @param {string} entityType+ * @param {string} link+ * @param {string[]} entityTypeList+ * @param {boolean} onlyNotCustom+ * @return {string[]}+ */getForeignLinkEntityTypeList(entityType, link, entityTypeList, onlyNotCustom) {const list = [];@@ -1222,10 +1232,8 @@ class LinkManagerEditModalView extends ModalView {linkDefs[i].entity === entityType &&linkDefs[i].type === 'hasChildren') {- if (onlyNotCustom) {- if (linkDefs[i].isCustom) {- continue;- }+ if (onlyNotCustom && linkDefs[i].isCustom) {+ continue;}isFound = true;