mirror of
https://github.com/symbiote/silverstripe-gridfieldextensions.git
synced 2024-06-28 23:49:21 +02:00
Merge pull request #319 from ntd/inline-row-with-defaults
FIX: use default values in new inline rows (#64)
This commit is contained in:
commit
7738a0b89b
|
@ -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