mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-29 00:34:05 +02:00
DirectorObjectForm: allow templates in global zones
This commit is contained in:
parent
2df368f4c7
commit
7f45883cba
@ -775,10 +775,16 @@ abstract class DirectorObjectForm extends QuickForm
|
|||||||
|
|
||||||
protected function addZoneElement()
|
protected function addZoneElement()
|
||||||
{
|
{
|
||||||
|
if ($this->isTemplate()) {
|
||||||
|
$zones = $this->db->enumZones();
|
||||||
|
} else {
|
||||||
|
$zones = $this->db->enumNonglobalZones();
|
||||||
|
}
|
||||||
|
|
||||||
$this->addElement('select', 'zone_id', array(
|
$this->addElement('select', 'zone_id', array(
|
||||||
'label' => $this->translate('Cluster Zone'),
|
'label' => $this->translate('Cluster Zone'),
|
||||||
'description' => $this->translate('Icinga cluster zone'),
|
'description' => $this->translate('Icinga cluster zone'),
|
||||||
'multiOptions' => $this->optionalEnum($this->db->enumNonglobalZones())
|
'multiOptions' => $this->optionalEnum($zones)
|
||||||
));
|
));
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user