From 9c5776bf002c7dfbb01e219c569c495d05c3e79f Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Wed, 9 Dec 2015 15:06:11 +0100 Subject: [PATCH] IcingaZone: fix parent zone relation --- library/Director/Objects/IcingaZone.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/library/Director/Objects/IcingaZone.php b/library/Director/Objects/IcingaZone.php index 338f3edc..c4fa101d 100644 --- a/library/Director/Objects/IcingaZone.php +++ b/library/Director/Objects/IcingaZone.php @@ -22,13 +22,17 @@ class IcingaZone extends IcingaObject ); protected $relations = array( - 'parent_zone_id' => 'IcingaZone', + 'parent_zone' => 'IcingaZone', ); protected $supportsImports = true; protected function renderParent_zone_id() { - return $this->renderZoneProperty($this->parent_zone_id, 'parent_zone'); + return $this->renderRelationProperty( + 'parent_zone', + $this->parent_zone_id, + 'parent' + ); } }