mirror of
https://github.com/colymba/GridFieldBulkEditingTools.git
synced 2024-10-22 11:05:57 +02:00
FIX UploadField name should be unique
Avoid having multiple UploadFields with the same name, whcih in turn would all change at the same time
This commit is contained in:
parent
cb123a1793
commit
ea0359b76f
@ -330,7 +330,8 @@ class BulkUploader implements GridField_HTMLProvider, GridField_URLHandler
|
|||||||
public function bulkUploadField($gridField)
|
public function bulkUploadField($gridField)
|
||||||
{
|
{
|
||||||
$fileRelationName = $this->getFileRelationName($gridField);
|
$fileRelationName = $this->getFileRelationName($gridField);
|
||||||
$uploadField = BulkUploadField::create($gridField, $fileRelationName, '')
|
$fieldName = $fileRelationName . '_' . $this->getRecordClassName($gridField) . '_BU';
|
||||||
|
$uploadField = BulkUploadField::create($gridField, $fieldName, '')
|
||||||
->setForm($gridField->getForm())
|
->setForm($gridField->getForm())
|
||||||
|
|
||||||
/*->setConfig('previewMaxWidth', 20)
|
/*->setConfig('previewMaxWidth', 20)
|
||||||
|
Loading…
Reference in New Issue
Block a user