FIX: onBulkUpload should be called before write to allow changing record variables
This commit is contained in:
parent
c34bba4508
commit
f9437870a3
|
@ -80,9 +80,9 @@ class BulkUploadHandler extends RequestHandler
|
|||
{
|
||||
$recordClass = $this->component->getRecordClassName($this->gridField);
|
||||
$record = $recordClass::create();
|
||||
$record->write();
|
||||
|
||||
|
||||
$record->extend('onBulkUpload', $this->gridField);
|
||||
$record->write();
|
||||
|
||||
$fileRelationName = $this->component->getFileRelationName($this->gridField);
|
||||
$record->{"{$fileRelationName}ID"} = $fileID;
|
||||
|
|
Loading…
Reference in New Issue