mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-09-29 12:49:00 +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(
|
$form = CMSForm::create(
|
||||||
$this,
|
$this,
|
||||||
'getEditForm',
|
'EditForm',
|
||||||
new FieldList(
|
new FieldList(
|
||||||
$uploadField,
|
$uploadField,
|
||||||
new HiddenField('ID')
|
new HiddenField('ID')
|
||||||
),
|
),
|
||||||
new FieldList()
|
new FieldList()
|
||||||
)->setHTMLID('Form_getEditForm');
|
)->setHTMLID('Form_EditForm');
|
||||||
$form->setResponseNegotiator($this->getResponseNegotiator());
|
$form->setResponseNegotiator($this->getResponseNegotiator());
|
||||||
$form->addExtraClass('center cms-edit-form ' . $this->BaseCSSClasses());
|
$form->addExtraClass('center cms-edit-form ' . $this->BaseCSSClasses());
|
||||||
// Don't use AssetAdmin_EditForm, as it assumes a different panel structure
|
// Don't use AssetAdmin_EditForm, as it assumes a different panel structure
|
||||||
|
Loading…
Reference in New Issue
Block a user