mirror of
https://github.com/symbiote/silverstripe-gridfieldextensions.git
synced 2024-10-22 17:05:39 +02:00
FIX: use default values in new inline rows (#64)
This commit is contained in:
parent
74126ed6a7
commit
3d4986432c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user