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:
Daniel Hensby 2016-03-28 11:04:57 +01:00
commit 478d04327b

View File

@ -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) {