mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
Merge pull request #1434 from open-sausages/pulls/4.0/cms-set-form
Ensure all form fields have a form set
This commit is contained in:
commit
478d04327b
@ -647,6 +647,8 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr
|
||||
$form->setFields($readonlyFields);
|
||||
}
|
||||
|
||||
$form->Fields()->setForm($form);
|
||||
|
||||
$this->extend('updateEditForm', $form);
|
||||
return $form;
|
||||
} else if($id) {
|
||||
|
Loading…
Reference in New Issue
Block a user