From 13809b999ab76f7c446c9fc78bddf81c47b97c65 Mon Sep 17 00:00:00 2001 From: Benjamin Blake Date: Mon, 19 Aug 2024 13:30:08 -0600 Subject: [PATCH] API Added fileID and record variables to onBulkUpload hook --- src/BulkUploader/BulkUploadHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BulkUploader/BulkUploadHandler.php b/src/BulkUploader/BulkUploadHandler.php index 3c8a27b..11c97c7 100644 --- a/src/BulkUploader/BulkUploadHandler.php +++ b/src/BulkUploader/BulkUploadHandler.php @@ -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;