mirror of
https://github.com/colymba/GridFieldBulkEditingTools.git
synced 2024-10-22 11:05:57 +02:00
NEW: Added a callback before writing the record for the first time, allowing the corresponding DataObject to execute code related to the current gridField.
This commit is contained in:
parent
2cc9a999f9
commit
09554b27b4
@ -264,6 +264,9 @@ class GridFieldBulkImageUpload_Request extends RequestHandler {
|
|||||||
|
|
||||||
$record = Object::create($recordClass);
|
$record = Object::create($recordClass);
|
||||||
$record->setField($recordForeignKey, $recordForeignID);
|
$record->setField($recordForeignKey, $recordForeignID);
|
||||||
|
// passes the current gridfield-instance to a call-back method on the new object
|
||||||
|
$record->extend("onBulkImageUpload", $this->gridField);
|
||||||
|
|
||||||
$record->write();
|
$record->write();
|
||||||
|
|
||||||
$upload = new Upload();
|
$upload = new Upload();
|
||||||
|
Loading…
Reference in New Issue
Block a user