Skip to content

Instantly share code, notes, and snippets.

@ajshort
Created June 6, 2010 22:09
Show Gist options
  • Select an option

  • Save ajshort/427954 to your computer and use it in GitHub Desktop.

Select an option

Save ajshort/427954 to your computer and use it in GitHub Desktop.
Index: CMSMain.php
===================================================================
--- CMSMain.php (revision 106168)
+++ CMSMain.php (working copy)
@@ -48,6 +48,7 @@
'restore',
'revert',
'rollback',
+ 'RootForm',
'sidereport',
'submit',
'unpublish',
@@ -516,7 +517,8 @@
$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);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment