Skip to content

Commit

Permalink
Merge pull request #9528 from silverstripe-terraformers/bugfix/remove…
Browse files Browse the repository at this point in the history
…-recursive-write-rebased

Remove recursive write until its fixed [Rebased]
  • Loading branch information
Sam Minnée committed May 28, 2020
2 parents 42bb289 + d320026 commit eb658e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Forms/GridField/GridFieldDetailForm_ItemRequest.php
Expand Up @@ -638,7 +638,8 @@ protected function saveFormIntoRecord($data, $form)
// 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);
Expand Down

0 comments on commit eb658e0

Please sign in to comment.