Correct form name in CMSFileAddController, fixes upload

Fixes https://github.com/silverstripe/silverstripe-framework/issues/2172
This commit is contained in:
Ingo Schommer 2013-07-02 09:33:38 +02:00
parent 0bd257c8fc
commit a2c2be2ad5

View File

@ -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