N°7157 - Fix subscription check when no existing lnk yet

This commit is contained in:
Molkobain
2024-02-21 11:08:50 +01:00
parent ba0a585256
commit 7c17957ec7

View File

@@ -105,7 +105,7 @@ class NotificationsService {
// Check if the user is already subscribed to the action notification
$oSubscribedActionsNotificationsSet = NotificationsRepository::GetInstance()->SearchSubscriptionByTriggerContactAndAction($oTrigger->GetKey(), $oRecipient->GetKey(), $oActionNotification->GetKey());
if ($oSubscribedActionsNotificationsSet->Count() === 0) {
return false;
return true;
}
// Return the subscribed status