Skip to content

EspoCRM – Open Source CRM Application

group collaborating notification

Yuriiea7bc69f4e89
diff --git a/application/Espo/Tools/Notification/CollaboratorsNotificator.php b/application/Espo/Tools/Notification/CollaboratorsNotificator.php
index e1eec02f2d..2aede4b340 100644
--- a/application/Espo/Tools/Notification/CollaboratorsNotificator.php
+++ b/application/Espo/Tools/Notification/CollaboratorsNotificator.php
@@ -80,6 +80,8 @@ class CollaboratorsNotificator
'createdByName' => $this->user->getName(),
])
->setRelated(LinkParent::fromEntity($entity))
+ // Needed for grouping.
+ ->setRelatedParent(LinkParent::fromEntity($entity))
->setActionId($params->getActionId());
$this->entityManager->saveEntity($notification);
diff --git a/application/Espo/Tools/Notification/RecordService.php b/application/Espo/Tools/Notification/RecordService.php
index 7ad0e11c79..e835ff949d 100644
--- a/application/Espo/Tools/Notification/RecordService.php
+++ b/application/Espo/Tools/Notification/RecordService.php
@@ -924,6 +924,7 @@ class RecordService
return [
Notification::TYPE_NOTE,
Notification::TYPE_USER_REACTION,
+ Notification::TYPE_COLLABORATING,
'EventAttendee',
];
}