mirror of
https://github.com/colymba/GridFieldBulkEditingTools.git
synced 2024-10-22 11:05:57 +02:00
API Added fileID and record variables to onBulkUpload hook
This commit is contained in:
parent
50e092d283
commit
13809b999a
@ -80,7 +80,7 @@ class BulkUploadHandler extends RequestHandler
|
||||
$record = $recordClass::create();
|
||||
$record->write();
|
||||
|
||||
$record->extend('onBulkUpload', $this->gridField);
|
||||
$record->extend('onBulkUpload', $this->gridField, $fileID, $record);
|
||||
|
||||
$fileRelationName = $this->component->getFileRelationName($this->gridField);
|
||||
$record->{"{$fileRelationName}ID"} = $fileID;
|
||||
|
Loading…
Reference in New Issue
Block a user