From 38ebf2dd2d287c7b59e9dd8cb491f214ef0edbb8 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Sun, 13 Aug 2017 12:05:03 +0200 Subject: [PATCH] IcingaObjectFieldLoader: use new repository-based ...inheritance helper methods --- library/Director/Web/Form/IcingaObjectFieldLoader.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/library/Director/Web/Form/IcingaObjectFieldLoader.php b/library/Director/Web/Form/IcingaObjectFieldLoader.php index 94da423e..209d0f4b 100644 --- a/library/Director/Web/Form/IcingaObjectFieldLoader.php +++ b/library/Director/Web/Form/IcingaObjectFieldLoader.php @@ -448,10 +448,9 @@ class IcingaObjectFieldLoader //return array(); } - $pathIds = $object->templateResolver()->listInheritancePathIds(); - return $this->fetchFieldDetailsForIds( - array_unique($pathIds) - ); + $ids = $object->listAncestorIds(); + $ids[] = $object->getProperty('id'); + return $this->fetchFieldDetailsForIds($ids); } /***