mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 08:44:10 +02:00
NavigationConfigForm: Sub-forms may require a parent being set
refs #5600
This commit is contained in:
parent
b6fe6ffd6b
commit
f8d53c1d07
@ -423,7 +423,9 @@ class NavigationConfigForm extends ConfigForm
|
||||
)
|
||||
);
|
||||
|
||||
$this->addSubForm($this->getItemForm($itemType)->create($formData), 'item_form');
|
||||
$itemForm = $this->getItemForm($itemType);
|
||||
$this->addSubForm($itemForm, 'item_form');
|
||||
$itemForm->create($formData); // Requires a parent which gets set by addSubForm()
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user