FIX Support new arguments for better buttons support

This commit is contained in:
Guy Marriott 2019-05-02 14:04:02 +12:00
parent 88215b9efb
commit 9d311ca02b
No known key found for this signature in database
GPG Key ID: A80F9ACCB86D3DA7
2 changed files with 2 additions and 2 deletions

View File

@ -103,7 +103,7 @@ class UserFormFieldEditorExtension extends DataExtension
new GridFieldDeleteAction(),
new GridFieldToolbarHeader(),
new GridFieldOrderableRows('Sort'),
new GridFieldDetailForm()
new GridFieldDetailForm(null, false, false)
);
$editButton->removeExtraClass('grid-field__icon-action--hidden-on-hover');

View File

@ -258,7 +258,7 @@ SQL;
$config->addComponent(new GridFieldDeleteAction());
$config->addComponent(new GridFieldPageCount('toolbar-header-right'));
$config->addComponent($pagination = new GridFieldPaginator(25));
$config->addComponent(new GridFieldDetailForm());
$config->addComponent(new GridFieldDetailForm(null, null, false));
$config->addComponent(new GridFieldButtonRow('after'));
$config->addComponent($export = new GridFieldExportButton('buttons-after-left'));
$config->addComponent($print = new GridFieldPrintButton('buttons-after-left'));