diff --git a/library/Notifications/Hook/ObjectsRendererHook.php b/library/Notifications/Hook/ObjectsRendererHook.php index c091c14c..5d0af3ff 100644 --- a/library/Notifications/Hook/ObjectsRendererHook.php +++ b/library/Notifications/Hook/ObjectsRendererHook.php @@ -156,8 +156,8 @@ function ($object) { foreach ($objectNamesFromSource as $objectIdTag => $objectName) { foreach ($idTagToObjectIdMap[$source] as $key => $val) { $diff = array_intersect_assoc($val[1], $objectIdTag); - if (count($diff) === count($val[1])) { - unset($idTagToObjectIdMap[$key]); + if (count($diff) === count($val[1]) && count($diff) === count($objectIdTag)) { + unset($idTagToObjectIdMap[$source][$key]); if ($asHtml) { $objectName = HtmlElement::create(