FIX: use default values in new inline rows (#64)

This commit is contained in:
Nicola Fontana 2021-03-24 20:32:02 +01:00
parent 74126ed6a7
commit 3d4986432c

View File

@ -135,6 +135,9 @@ class GridFieldAddNewInlineButton implements GridField_HTMLProvider, GridField_S
$field->getName()
));
if ($record && $record->hasField($column)) {
$field->setValue($record->getField($column));
}
$content = $field->Field();
} else {
$content = $grid->getColumnContent($record, $column);