From 2d0ee2ca91de9af4a31a39c4fda3aeacea684a79 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Wed, 6 Nov 2013 10:08:15 +0100 Subject: [PATCH] Disable UploadField change detection in assets/admin/add See https://github.com/silverstripe/silverstripe-framework/issues/2638 --- code/controllers/CMSFileAddController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/code/controllers/CMSFileAddController.php b/code/controllers/CMSFileAddController.php index ef6d1e40..d4218b17 100644 --- a/code/controllers/CMSFileAddController.php +++ b/code/controllers/CMSFileAddController.php @@ -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');