mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 11:08:45 +02: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
|
// Check if the user is already subscribed to the action notification
|
||||||
$oSubscribedActionsNotificationsSet = NotificationsRepository::GetInstance()->SearchSubscriptionByTriggerContactAndAction($oTrigger->GetKey(), $oRecipient->GetKey(), $oActionNotification->GetKey());
|
$oSubscribedActionsNotificationsSet = NotificationsRepository::GetInstance()->SearchSubscriptionByTriggerContactAndAction($oTrigger->GetKey(), $oRecipient->GetKey(), $oActionNotification->GetKey());
|
||||||
if ($oSubscribedActionsNotificationsSet->Count() === 0) {
|
if ($oSubscribedActionsNotificationsSet->Count() === 0) {
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Return the subscribed status
|
// Return the subscribed status
|
||||||
|
|||||||
Reference in New Issue
Block a user