Skip to content

Commit

Permalink
API Added fileID and record variables to onBulkUpload hook
Browse files Browse the repository at this point in the history
  • Loading branch information
mooror committed Aug 19, 2024
1 parent 50e092d commit 13809b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BulkUploader/BulkUploadHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ protected function createDataObject($fileID)
$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;
Expand Down

0 comments on commit 13809b9

Please sign in to comment.