From 7b35692ce63a9ea780a7e950284691723eb44c6f Mon Sep 17 00:00:00 2001 From: Molkobain Date: Wed, 24 Apr 2024 17:19:40 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B02039=20-=20Fix=20notification=20not=20se?= =?UTF-8?q?nd=20if=20Person=20linked=20to=20more=20than=201=20User?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/datamodel.core.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/datamodel.core.xml b/core/datamodel.core.xml index 7b953e1e5..533ef8af8 100644 --- a/core/datamodel.core.xml +++ b/core/datamodel.core.xml @@ -284,7 +284,7 @@ while ($oRecipient = $oRecipientsSet->Fetch()) { // Skip recipients that have no users - if (get_class($oRecipient) === Person::class && UserRights::GetUserFromPerson($oRecipient) === null) { + if ($oRecipient instanceof Person && UserRights::GetUserFromPerson($oRecipient, false) === null) { continue; } if (!\Combodo\iTop\Service\Notification\NotificationsService::GetInstance()->IsSubscribed($oTrigger, $this, $oRecipient)) {