IcingaObjectFieldLoader: attach fields to form...

...before adding them to a display group. Many thanks to Marc DeTrano for
troubleshooting this tricky issue.

fixes #13279
This commit is contained in:
Thomas Gelf 2016-12-13 12:46:45 +01:00
parent 1dc0aad828
commit d2adc1b4ec
1 changed files with 3 additions and 0 deletions

View File

@ -151,6 +151,9 @@ class IcingaObjectFieldLoader
protected function attachFieldsToForm(QuickForm $form) protected function attachFieldsToForm(QuickForm $form)
{ {
$elements = $this->getElements($form); $elements = $this->getElements($form);
foreach ($elements as $element) {
$form->addElement($element);
}
if (! empty($elements)) { if (! empty($elements)) {
$form->addElementsToGroup( $form->addElementsToGroup(