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…
Reference in New Issue