Removed the record->write calls

write happens in the list->add method
This commit is contained in:
Bram de Leeuw 2016-10-26 10:47:28 +02:00 committed by GitHub
parent 1abcb9b58d
commit bb57ed1f1e
1 changed files with 0 additions and 2 deletions

View File

@ -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);