Skip to content

Commit

Permalink
Merge pull request #303 from sitelease/onbulkupload-enhancement-new
Browse files Browse the repository at this point in the history
API Added fileID and record variables to onBulkUpload hook (Revision 2)
  • Loading branch information
GuySartorelli authored Aug 19, 2024
2 parents 50e092d + 13809b9 commit 4bd3542
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 4bd3542

Please sign in to comment.