Skip to content

EspoCRM – Open Source CRM Application

Ref

Yuriid4a04b836f58
diff --git a/application/Espo/Entities/Note.php b/application/Espo/Entities/Note.php
index 3eec3a697c..73427db2ca 100644
--- a/application/Espo/Entities/Note.php
+++ b/application/Espo/Entities/Note.php
@@ -85,6 +85,11 @@ class Note extends Entity
public 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(): bool
diff --git a/application/Espo/Entities/Notification.php b/application/Espo/Entities/Notification.php
index 1a17675417..9615680cfc 100644
--- a/application/Espo/Entities/Notification.php
+++ b/application/Espo/Entities/Notification.php
@@ -63,6 +63,7 @@ class Notification extends Entity
public 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.php
index 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) {