From eb1d4c67b01ceccb74829ac321cbaf17a5733fc4 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Thu, 30 Jul 2015 11:48:42 +0200 Subject: [PATCH] DirectorObjectForm: finally remove obsolete helpers --- .../Director/Web/Form/DirectorObjectForm.php | 40 ------------------- 1 file changed, 40 deletions(-) diff --git a/library/Director/Web/Form/DirectorObjectForm.php b/library/Director/Web/Form/DirectorObjectForm.php index e4341fc5..72fc78e6 100644 --- a/library/Director/Web/Form/DirectorObjectForm.php +++ b/library/Director/Web/Form/DirectorObjectForm.php @@ -333,46 +333,6 @@ abstract class DirectorObjectForm extends QuickForm if ($this->object !== null) { $this->object->setConnection($db); } - if ($this->hasElement('parent_zone_id')) { - $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('service_id')) { - $this->getElement('service_id') - ->setMultiOptions($this->optionalEnum($db->enumServices())); - } - if ($this->hasElement('servicegroup_id')) { - $this->getElement('servicegroup_id') - ->setMultiOptions($this->optionalEnum($db->enumServicegroups())); - } - if ($this->hasElement('user_id')) { - $this->getElement('user_id') - ->setMultiOptions($this->optionalEnum($db->enumUsers())); - } - if ($this->hasElement('usergroup_id')) { - $this->getElement('usergroup_id') - ->setMultiOptions($this->optionalEnum($db->enumUsergroups())); - } - if ($this->hasElement('zone_id')) { - $this->getElement('zone_id') - ->setMultiOptions($this->optionalEnum($db->enumZones())); - } - if ($this->hasElement('check_command_id')) { - $this->getElement('check_command_id') - ->setMultiOptions($this->optionalEnum($db->enumCheckCommands())); - } - if ($this->hasElement('command_id')) { - $this->getElement('command_id') - ->setMultiOptions($this->optionalEnum($db->enumCommands())); - } return $this; }