mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-08-30 06:08:10 +02:00
DirectorObjectForm: automagic ugly host/hostgroup handling
This commit is contained in:
parent
0793c1cc55
commit
4a5c425056
@ -106,6 +106,14 @@ abstract class DirectorObjectForm extends QuickForm
|
||||
$this->getElement('parent_zone_id')
|
||||
->setMultiOptions($this->optionalEnum($db->enumZones()));
|
||||
}
|
||||
if ($this->hasElement('host_id')) {
|
||||
$this->getElement('host_id')
|
||||
->setMultiOptions($this->optionalEnum($db->enumHosts()));
|
||||
}
|
||||
if ($this->hasElement('hostgroup_id')) {
|
||||
$this->getElement('hostgroup_id')
|
||||
->setMultiOptions($this->optionalEnum($db->enumHostgroups()));
|
||||
}
|
||||
if ($this->hasElement('zone_id')) {
|
||||
$this->getElement('zone_id')
|
||||
->setMultiOptions($this->optionalEnum($db->enumZones()));
|
||||
|
Loading…
x
Reference in New Issue
Block a user