mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-28 16:24: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()
|
||||
{
|
||||
if ($this->isTemplate()) {
|
||||
$zones = $this->db->enumZones();
|
||||
} else {
|
||||
$zones = $this->db->enumNonglobalZones();
|
||||
}
|
||||
|
||||
$this->addElement('select', 'zone_id', array(
|
||||
'label' => $this->translate('Cluster Zone'),
|
||||
'description' => $this->translate('Icinga cluster zone'),
|
||||
'multiOptions' => $this->optionalEnum($this->db->enumNonglobalZones())
|
||||
'multiOptions' => $this->optionalEnum($zones)
|
||||
));
|
||||
|
||||
return $this;
|
||||
|
Loading…
x
Reference in New Issue
Block a user