Merge pull request #9528 from silverstripe-terraformers/bugfix/remove-recursive-write-rebased

Remove recursive write until its fixed [Rebased]
This commit is contained in:
Sam Minnée 2020-05-28 17:12:36 +12:00 committed by GitHub
commit eb658e0705
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -638,7 +638,8 @@ class GridFieldDetailForm_ItemRequest extends RequestHandler
// Save form and any extra saved data into this dataobject.
// Set writeComponents = true to write has-one relations / join records
$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);
$extraData = $this->getExtraSavedData($this->record, $list);