BUGFIX: Apply AJShort's patch to fix SiteConfig (trac 5671)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@106351 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Luke Hudson 2010-06-10 06:40:40 +00:00 committed by Sam Minnee
parent a010ab82a3
commit 2845529234

View File

@ -48,6 +48,7 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr
'restore',
'revert',
'rollback',
'RootForm',
'sidereport',
'submit',
'unpublish',
@ -516,7 +517,8 @@ JS;
$fields->push(new HiddenField('ID', '', $siteConfig->ID));
$form = new Form($this, "EditForm", $fields, $siteConfig->getCMSActions());
$form = new Form($this, 'RootForm', $fields, $siteConfig->getCMSActions());
$form->setHTMLID('Form_EditForm');
$form->loadDataFrom($siteConfig);
$this->extend('updateEditForm', $form);