EspoCRM – Open Source CRM Application
PHP calendarcontactscrmcrm-platformcrm-systemcustomer-portalcustomer-supportcustomizabledocumentsemail-marketingkanbanleadsopen-sourcephpplatformsales-automationsingle-page-applicationsupport
Ref
Yuriid4a04b836f58
diff --git a/application/Espo/Entities/Note.php b/application/Espo/Entities/Note.phpindex 3eec3a697c..73427db2ca 100644--- a/application/Espo/Entities/Note.php+++ b/application/Espo/Entities/Note.php@@ -85,6 +85,11 @@ class Note extends Entitypublic const string FIELD_IS_INTERNAL = 'isInternal';public const string FIELD_IS_PINNED = 'isPinned';+ /**+ * @since 10.0.0+ */+ public const string FIELD_RELATED = 'related';+private bool $aclIsProcessed = false;public function isPost(): booldiff --git a/application/Espo/Entities/Notification.php b/application/Espo/Entities/Notification.phpindex 1a17675417..9615680cfc 100644--- a/application/Espo/Entities/Notification.php+++ b/application/Espo/Entities/Notification.php@@ -63,6 +63,7 @@ class Notification extends Entitypublic const string FIELD_MESSAGE = 'message';public const string FIELD_TYPE = 'type';public const string FIELD_RELATED_PARENT = 'relatedParent';+/*** @since 10.0.0*/diff --git a/application/Espo/Tools/Notification/RecordService.php b/application/Espo/Tools/Notification/RecordService.phpindex 06a9aea7a4..2f6562b157 100644--- a/application/Espo/Tools/Notification/RecordService.php+++ b/application/Espo/Tools/Notification/RecordService.php@@ -400,7 +400,7 @@ class RecordService$relatedType = $note->getRelatedType();if ($relatedId && $relatedType && $notification->getType() !== Notification::TYPE_USER_REACTION) {- $note->loadParentNameField(Notification::FIELD_RELATED);+ $note->loadParentNameField(Note::FIELD_RELATED);}if ($notification->getType() !== Notification::TYPE_USER_REACTION) {