IcingaZone: fix parent zone relation

This commit is contained in:
Thomas Gelf 2015-12-09 15:06:11 +01:00
parent bac3969cdd
commit 9c5776bf00

View File

@ -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'
);
}
}