InstancePage: Show missing fields

fixes #9540
This commit is contained in:
Johannes Meyer 2015-07-03 15:07:58 +02:00
parent 74a916d72a
commit cef9b58029
1 changed files with 8 additions and 3 deletions

View File

@ -20,8 +20,13 @@ class InstancePage extends Form
public function createElements(array $formData)
{
$instanceConfigForm = new InstanceConfigForm();
$instanceConfigForm->createElements($formData);
$this->addElements($instanceConfigForm->getElements());
$this->getElement('name')->setValue('icinga');
$this->addSubForm($instanceConfigForm, 'instance_form');
$instanceConfigForm->create($formData);
$instanceConfigForm->getElement('name')->setValue('icinga');
}
public function getValues($suppressArrayNotation = false)
{
return $this->getSubForm('instance_form')->getValues($suppressArrayNotation);
}
}