Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
fix(eventview): handle properties not in serializing groups (#10412)
Browse files Browse the repository at this point in the history
* fix(eventview): handle properties not in serializing groups

* Update src/Centreon/Domain/Monitoring/Serializer/ResourceExclusionStrategy.php

Co-authored-by: Kevin Duret <kduret@centreon.com>

* Update src/Centreon/Domain/Monitoring/Serializer/ResourceExclusionStrategy.php

Co-authored-by: Laurent Calvet <lcalvet@centreon.com>

Co-authored-by: Kevin Duret <kduret@centreon.com>
Co-authored-by: Laurent Calvet <lcalvet@centreon.com>
  • Loading branch information
3 people committed Nov 18, 2021
1 parent d7ef9fb commit 762d342
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,10 @@ public function shouldSkipProperty(PropertyMetadata $property, Context $navigato
if (
$property->class === Resources::class
&& $navigatorContext->getDepth() > 1
&& !in_array(Resources::SERIALIZER_GROUP_PARENT, $property->groups)
&& (
$property->groups === null
|| !in_array(Resources::SERIALIZER_GROUP_PARENT, $property->groups)
)
) {
return true;
}
Expand Down

0 comments on commit 762d342

Please sign in to comment.