From 1f251eecb34cbc7b7c3f3588215dcfc46a7bc4ba Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Sat, 6 Dec 2025 10:43:26 +0200 Subject: [PATCH] fix notification read --- application/Espo/Tools/Notification/RecordService.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/application/Espo/Tools/Notification/RecordService.php b/application/Espo/Tools/Notification/RecordService.php index 476847e24a..8608d21c55 100644 --- a/application/Espo/Tools/Notification/RecordService.php +++ b/application/Espo/Tools/Notification/RecordService.php @@ -121,7 +121,11 @@ class RecordService $ids = []; $actionIds = []; - foreach ($collection as $entity) { + foreach ($collection as $i => $entity) { + if ($i === $limit) { + break; + } + $ids[] = $entity->getId(); $groupedCount = null;