Skip to content

Commit 2d70eb4

Browse files
authored
Merge pull request #562 from Icinga/fix-leaf-rule-bug
Bring parent uuids in correct order
2 parents 5310869 + 8bddc36 commit 2d70eb4

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

library/Vspheredb/Monitoring/Rule/MonitoringRulesTree.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,7 @@ public function hasConfigurationForUuid($uuid): bool
8888
public function getInheritedSettingsFor(BaseDbObject $object): InheritedSettings
8989
{
9090
$uuid = $object->object()->get('parent_uuid');
91-
$parents = $this->listParentUuidsFor($uuid);
92-
$parents[] = $uuid;
91+
$parents = [$uuid, ...$this->listParentUuidsFor($uuid)];
9392

9493
return InheritedSettings::loadForUuids($parents, $this, $this->db);
9594
}

0 commit comments

Comments
 (0)