mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-06-29 07:59:31 +02: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…
Reference in New Issue
Block a user