mirror of
https://github.com/colymba/GridFieldBulkEditingTools.git
synced 2024-10-22 11:05:57 +02:00
Merge pull request #303 from sitelease/onbulkupload-enhancement-new
API Added fileID and record variables to onBulkUpload hook (Revision 2)
This commit is contained in:
commit
4bd3542d0b
@ -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