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:
parent
8c0598a9ba
commit
f521a39604
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue