mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
Correct form name in CMSFileAddController, fixes upload
Fixes https://github.com/silverstripe/silverstripe-framework/issues/2172
This commit is contained in:
parent
0bd257c8fc
commit
a2c2be2ad5
@ -78,13 +78,13 @@ class CMSFileAddController extends LeftAndMain {
|
||||
|
||||
$form = CMSForm::create(
|
||||
$this,
|
||||
'getEditForm',
|
||||
'EditForm',
|
||||
new FieldList(
|
||||
$uploadField,
|
||||
new HiddenField('ID')
|
||||
),
|
||||
new FieldList()
|
||||
)->setHTMLID('Form_getEditForm');
|
||||
)->setHTMLID('Form_EditForm');
|
||||
$form->setResponseNegotiator($this->getResponseNegotiator());
|
||||
$form->addExtraClass('center cms-edit-form ' . $this->BaseCSSClasses());
|
||||
// Don't use AssetAdmin_EditForm, as it assumes a different panel structure
|
||||
|
Loading…
Reference in New Issue
Block a user