IcingaServiceForm: do not provide object type

This commit is contained in:
Thomas Gelf 2016-03-29 19:33:45 +02:00
parent 078e46df60
commit 755112eac5
1 changed files with 1 additions and 5 deletions

View File

@ -24,11 +24,7 @@ class IcingaServiceForm extends DirectorObjectForm
protected function setupServiceElements()
{
$this->addObjectTypeElement();
if (! $this->hasObjectType()) {
return $this->groupMainProperties();
}
$this->addHidden('object_type', 'template');
$this->addNameElement()
->addHostObjectElement()