Permalink
Browse files

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
  • Loading branch information...
1 parent faa17fd commit 6d74db77ffed8066a7bcdae863b9161e87d3773a @chillu chillu committed with sminnee Jun 2, 2010
Showing with 3 additions and 0 deletions.
  1. +3 −0 code/CMSMain.php
View
@@ -513,6 +513,9 @@ function RootForm() {
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);

0 comments on commit 6d74db7

Please sign in to comment.