mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
FIX Only reload data for a item edited through a GridField if the record exists. Fix 7721
This commit is contained in:
parent
fb9e997b5e
commit
90b0fe8db7
@ -316,7 +316,9 @@ class GridFieldDetailForm_ItemRequest extends RequestHandler {
|
||||
$actions,
|
||||
$this->component->getValidator()
|
||||
);
|
||||
$form->loadDataFrom($this->record);
|
||||
if($this->record->ID !== 0) {
|
||||
$form->loadDataFrom($this->record);
|
||||
}
|
||||
|
||||
// TODO Coupling with CMS
|
||||
$toplevelController = $this->getToplevelController();
|
||||
|
Loading…
x
Reference in New Issue
Block a user