FIX #67 Give UploadField and empty Record

Avoids the UploadField to auto loading configurations from the page it
is inserted in.
This commit is contained in:
colymba 2014-05-27 11:53:45 +03:00
parent 1c4e0fd239
commit 77a3c65766

View File

@ -161,6 +161,8 @@ class GridFieldBulkUpload implements GridField_HTMLProvider, GridField_URLHandle
->setConfig('previewMaxHeight', 20)
->setConfig('changeDetection', false)
->setRecord(DataObject::create()) // avoid UploadField to get auto-config from the Page (e.g fix allowedMaxFileNumber)
->setTemplate('GridFieldBulkUploadField')
->setDownloadTemplateName('colymba-bulkuploaddownloadtemplate')