Skip to content

Commit

Permalink
ObjectsRendererHook: Fix false positive condition
Browse files Browse the repository at this point in the history
  • Loading branch information
sukhwinder33445 committed May 31, 2024
1 parent b366cd6 commit 67fee8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/Notifications/Hook/ObjectsRendererHook.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 67fee8b

Please sign in to comment.