Skip to content

EspoCRM – Open Source CRM Application

fix set related

Yuri Kuznetsovb205a58d10a5
diff --git a/application/Espo/Tools/Notification/Service.php b/application/Espo/Tools/Notification/Service.php
index fadf886727..07f3a0a039 100644
--- a/application/Espo/Tools/Notification/Service.php
+++ b/application/Espo/Tools/Notification/Service.php
@@ -140,7 +140,7 @@ class Service
->setData(['noteId' => $note->getId()])
->setType(Notification::TYPE_NOTE)
->setUserId($user->getId())
- ->setRelated(LinkParent::createFromEntity($notification))
+ ->setRelated(LinkParent::createFromEntity($note))
->setRelatedParent(
$note->getParentType() && $note->getParentId() ?
LinkParent::create($note->getParentType(), $note->getParentId()) : null