mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
FIX default values from DataObject not showing in GridField details form
This commit is contained in:
parent
0dd97a38f6
commit
7315be4531
@ -325,9 +325,8 @@ class GridFieldDetailForm_ItemRequest extends RequestHandler {
|
||||
$actions,
|
||||
$this->component->getValidator()
|
||||
);
|
||||
if($this->record->ID !== 0) {
|
||||
$form->loadDataFrom($this->record);
|
||||
}
|
||||
|
||||
$form->loadDataFrom($this->record, $this->record->ID == 0 ? Form::MERGE_IGNORE_FALSEISH : Form::MERGE_DEFAULT);
|
||||
|
||||
// TODO Coupling with CMS
|
||||
$toplevelController = $this->getToplevelController();
|
||||
|
Loading…
Reference in New Issue
Block a user