mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
MINOR Adjusted CMSMain->getRootForm() to SiteConfig API changes
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@100974 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
63ab9385dc
commit
3ed6e4df05
@ -491,11 +491,11 @@ JS;
|
|||||||
*/
|
*/
|
||||||
function RootForm() {
|
function RootForm() {
|
||||||
$siteConfig = SiteConfig::current_site_config();
|
$siteConfig = SiteConfig::current_site_config();
|
||||||
$fields = $siteConfig->getFormFields();
|
$fields = $siteConfig->getCMSFields();
|
||||||
if(Object::has_extension('SiteConfig',"Translatable")){
|
if(Object::has_extension('SiteConfig',"Translatable")){
|
||||||
$fields->push(new HiddenField('Locale','', $siteConfig->Locale ));
|
$fields->push(new HiddenField('Locale','', $siteConfig->Locale ));
|
||||||
}
|
}
|
||||||
$form = new Form($this, "EditForm", $fields, $siteConfig->getFormActions());
|
$form = new Form($this, "EditForm", $fields, $siteConfig->getCMSActions());
|
||||||
$form->loadDataFrom($siteConfig);
|
$form->loadDataFrom($siteConfig);
|
||||||
|
|
||||||
$this->extend('updateEditForm', $form);
|
$this->extend('updateEditForm', $form);
|
||||||
|
Loading…
Reference in New Issue
Block a user