EspoCRM – Open Source CRM Application
PHP calendarcontactscrmcrm-platformcrm-systemcustomer-portalcustomer-supportcustomizabledocumentsemail-marketingkanbanleadsopen-sourcephpplatformsales-automationsingle-page-applicationsupport
ref
Yuri Kuznetsov6dd898eb6ea2
diff --git a/application/Espo/Entities/Notification.php b/application/Espo/Entities/Notification.phpindex 9ee3a57688..52d1e25d2f 100644--- a/application/Espo/Entities/Notification.php+++ b/application/Espo/Entities/Notification.php@@ -184,4 +184,9 @@ class Notification extends Entity{return $this->get('actionId');}++ public function setGroupedCount(?string $groupedCount): self+ {+ return $this->set('groupedCount', $groupedCount);+ }}diff --git a/application/Espo/Tools/Notification/RecordService.php b/application/Espo/Tools/Notification/RecordService.phpindex 440fcfadd4..af2ecb5402 100644--- a/application/Espo/Tools/Notification/RecordService.php+++ b/application/Espo/Tools/Notification/RecordService.php@@ -132,7 +132,7 @@ class RecordService$groupedCount = $groupedCountMap[$entity->getActionId()] ?? 0;}- $entity->set('groupedCount', $groupedCount);+ $entity->setGroupedCount($groupedCount);}$collection = new EntityCollection([...$collection], Notification::ENTITY_TYPE);