BUGFIX Setting 'ID' field on CMSMain->RootForm() so it can work with formfields that require it (fixes #5671, thanks ajshort)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@106096 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2010-06-02 23:17:09 +00:00 committed by Sam Minnee
parent faa17fd2ce
commit 6d74db77ff

View File

@ -513,6 +513,9 @@ JS;
if(Object::has_extension('SiteConfig',"Translatable")){
$fields->push(new HiddenField('Locale','', $siteConfig->Locale ));
}
$fields->push(new HiddenField('ID', '', $siteConfig->ID));
$form = new Form($this, "EditForm", $fields, $siteConfig->getCMSActions());
$form->loadDataFrom($siteConfig);