mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-09-26 03:09:11 +02:00
IcingaZone: fix parent zone relation
This commit is contained in:
parent
bac3969cdd
commit
9c5776bf00
@ -22,13 +22,17 @@ class IcingaZone extends IcingaObject
|
|||||||
);
|
);
|
||||||
|
|
||||||
protected $relations = array(
|
protected $relations = array(
|
||||||
'parent_zone_id' => 'IcingaZone',
|
'parent_zone' => 'IcingaZone',
|
||||||
);
|
);
|
||||||
|
|
||||||
protected $supportsImports = true;
|
protected $supportsImports = true;
|
||||||
|
|
||||||
protected function renderParent_zone_id()
|
protected function renderParent_zone_id()
|
||||||
{
|
{
|
||||||
return $this->renderZoneProperty($this->parent_zone_id, 'parent_zone');
|
return $this->renderRelationProperty(
|
||||||
|
'parent_zone',
|
||||||
|
$this->parent_zone_id,
|
||||||
|
'parent'
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user