mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
N°7157 - Fix subscription check when no existing lnk yet
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user