This commit is contained in:
Yuri Kuznetsov
2024-05-16 12:58:15 +03:00
parent 2a17155f96
commit 149649be09
@@ -73,6 +73,7 @@ class HookProcessor
return;
}
$hasStream = $this->checkHasStream($entityType);
$force = $this->forceAssignmentNotificator($entityType);
/**
@@ -80,16 +81,19 @@ class HookProcessor
* Users are notified via Stream notifications.
*/
if (
$this->checkHasStream($entityType) &&
!$entity->hasLinkMultipleField('assignedUsers') &&
!$force
$hasStream &&
!$force &&
!$entity->hasLinkMultipleField('assignedUsers')
) {
return;
}
$assignmentNotificationsEntityList = $this->config->get('assignmentNotificationsEntityList') ?? [];
if (!$force && !in_array($entityType, $assignmentNotificationsEntityList)) {
if (
(!$force || !$hasStream) &&
!in_array($entityType, $assignmentNotificationsEntityList)
) {
return;
}