mirror of
https://github.com/colymba/GridFieldBulkEditingTools.git
synced 2024-10-22 09:05:57 +00:00
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:
parent
1c4e0fd239
commit
77a3c65766
@ -161,6 +161,8 @@ class GridFieldBulkUpload implements GridField_HTMLProvider, GridField_URLHandle
|
|||||||
->setConfig('previewMaxHeight', 20)
|
->setConfig('previewMaxHeight', 20)
|
||||||
->setConfig('changeDetection', false)
|
->setConfig('changeDetection', false)
|
||||||
|
|
||||||
|
->setRecord(DataObject::create()) // avoid UploadField to get auto-config from the Page (e.g fix allowedMaxFileNumber)
|
||||||
|
|
||||||
->setTemplate('GridFieldBulkUploadField')
|
->setTemplate('GridFieldBulkUploadField')
|
||||||
->setDownloadTemplateName('colymba-bulkuploaddownloadtemplate')
|
->setDownloadTemplateName('colymba-bulkuploaddownloadtemplate')
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user