EspoCRM – Open Source CRM Application
PHP calendarcontactscrmcrm-platformcrm-systemcustomer-portalcustomer-supportcustomizabledocumentsemail-marketingkanbanleadsopen-sourcephpplatformsales-automationsingle-page-applicationsupport
Note about link use field
Yuriiec181b6ed4a6
diff --git a/client/src/views/stream/notes/create-related.js b/client/src/views/stream/notes/create-related.jsindex 3192806950..5b1b994951 100644--- a/client/src/views/stream/notes/create-related.js+++ b/client/src/views/stream/notes/create-related.js@@ -58,12 +58,17 @@ class CreateRelatedNoteStreamView extends NoteStreamView {this.messageData['relatedEntityType'] = this.translateEntityType(this.entityType);- this.messageData['relatedEntity'] =- $('<a>')- .attr('href', `#${this.entityType}/view/${this.entityId}`)- .text(this.entityName)- .attr('data-scope', this.entityType)- .attr('data-id', this.entityId);+ if (this.model.attributes.relatedId) {+ this.messageData['relatedEntity'] = 'field:related';+ } else {+ // bc+ this.messageData['relatedEntity'] =+ $('<a>')+ .attr('href', `#${this.entityType}/view/${this.entityId}`)+ .text(this.entityName)+ .attr('data-scope', this.entityType)+ .attr('data-id', this.entityId);+ }this.createMessage();}diff --git a/client/src/views/stream/notes/relate.js b/client/src/views/stream/notes/relate.jsindex 43c463d6d6..3b3c968685 100644--- a/client/src/views/stream/notes/relate.js+++ b/client/src/views/stream/notes/relate.js@@ -58,12 +58,17 @@ class RelateNoteStreamView extends NoteStreamView {this.messageData['relatedEntityType'] = this.translateEntityType(this.entityType);- this.messageData['relatedEntity'] =- $('<a>')- .attr('href', `#${this.entityType}/view/${this.entityId}`)- .text(this.entityName)- .attr('data-scope', this.entityType)- .attr('data-id', this.entityId);+ if (this.model.attributes.relatedId) {+ this.messageData['relatedEntity'] = 'field:related';+ } else {+ // bc+ this.messageData['relatedEntity'] =+ $('<a>')+ .attr('href', `#${this.entityType}/view/${this.entityId}`)+ .text(this.entityName)+ .attr('data-scope', this.entityType)+ .attr('data-id', this.entityId);+ }this.createMessage();}