Remove recursive write until its fixed

This commit is contained in:
Adrian Humphreys 2020-05-07 09:07:01 +12:00
parent 13b4d60d4a
commit d320026375
No known key found for this signature in database
GPG Key ID: 4DBA3DAC36221FFA

View File

@ -638,7 +638,8 @@ class GridFieldDetailForm_ItemRequest extends RequestHandler
// Save form and any extra saved data into this dataobject. // Save form and any extra saved data into this dataobject.
// Set writeComponents = true to write has-one relations / join records // Set writeComponents = true to write has-one relations / join records
$form->saveInto($this->record); $form->saveInto($this->record);
$this->record->write(false, false, false, true); // https://github.com/silverstripe/silverstripe-assets/issues/365
$this->record->write();
$this->extend('onAfterSave', $this->record); $this->extend('onAfterSave', $this->record);
$extraData = $this->getExtraSavedData($this->record, $list); $extraData = $this->getExtraSavedData($this->record, $list);