Disable UploadField change detection in assets/admin/add

See https://github.com/silverstripe/silverstripe-framework/issues/2638
This commit is contained in:
Ingo Schommer 2013-11-06 10:08:15 +01:00
parent 35a84e4eae
commit 2d0ee2ca91

View File

@ -60,6 +60,7 @@ class CMSFileAddController extends LeftAndMain {
$uploadField = UploadField::create('AssetUploadField', '');
$uploadField->setConfig('previewMaxWidth', 40);
$uploadField->setConfig('previewMaxHeight', 30);
$uploadField->setConfig('changeDetection', false);
$uploadField->addExtraClass('ss-assetuploadfield');
$uploadField->removeExtraClass('ss-uploadfield');
$uploadField->setTemplate('AssetUploadField');