Removed the record->write calls
write happens in the list->add method
This commit is contained in:
parent
1abcb9b58d
commit
bb57ed1f1e
|
@ -107,7 +107,6 @@ class GridFieldBulkUpload_Request extends RequestHandler
|
|||
|
||||
// Attach the file to record.
|
||||
$record->{"{$fileRelationName}ID"} = $uploadResponse['id'];
|
||||
$record->write();
|
||||
|
||||
// attached record to gridField relation
|
||||
$this->gridField->list->add($record);
|
||||
|
@ -221,7 +220,6 @@ class GridFieldBulkUpload_Request extends RequestHandler
|
|||
|
||||
// attach file
|
||||
$record->{"{$fileRelationName}ID"} = $attachResponse['id'];
|
||||
$record->write();
|
||||
|
||||
// attached record to gridField relation
|
||||
$this->gridField->list->add($record);
|
||||
|
|
Loading…
Reference in New Issue