From cef9b58029c0528ac59e9b11a826d3e6c1876d75 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Fri, 3 Jul 2015 15:07:58 +0200 Subject: [PATCH] InstancePage: Show missing fields fixes #9540 --- .../application/forms/Setup/InstancePage.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/modules/monitoring/application/forms/Setup/InstancePage.php b/modules/monitoring/application/forms/Setup/InstancePage.php index 4dd6a5a09..d16646e3e 100644 --- a/modules/monitoring/application/forms/Setup/InstancePage.php +++ b/modules/monitoring/application/forms/Setup/InstancePage.php @@ -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); } }