Merge branch '4.5' into 4.6

This commit is contained in:
Steve Boyd 2020-06-12 11:20:13 +12:00
commit 4daccfab67

View File

@ -650,7 +650,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);