Add the whole record to the has_many realtion

In my SS 3.4 install the record does not get linked when only the ID is given
This commit is contained in:
Bram de Leeuw 2016-06-26 16:34:20 +02:00 committed by GitHub
parent 8c0598a9ba
commit f521a39604
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ class GridFieldBulkUpload_Request extends RequestHandler
$record->write();
// attached record to gridField relation
$this->gridField->list->add($record->ID);
$this->gridField->list->add($record);
// JS Template Data
$responseData = $this->newRecordJSTemplateData($record, $uploadResponse);