Merge branch '4' into 5

This commit is contained in:
github-actions 2024-08-23 06:42:32 +00:00
commit c889ec1534

View File

@ -80,7 +80,7 @@ class BulkUploadHandler extends RequestHandler
$record = $recordClass::create(); $record = $recordClass::create();
$record->write(); $record->write();
$record->extend('onBulkUpload', $this->gridField); $record->extend('onBulkUpload', $this->gridField, $fileID, $record);
$fileRelationName = $this->component->getFileRelationName($this->gridField); $fileRelationName = $this->component->getFileRelationName($this->gridField);
$record->{"{$fileRelationName}ID"} = $fileID; $record->{"{$fileRelationName}ID"} = $fileID;