From 9d311ca02bc701f5607b23e74af50b64497bfe10 Mon Sep 17 00:00:00 2001 From: Guy Marriott Date: Thu, 2 May 2019 14:04:02 +1200 Subject: [PATCH] FIX Support new arguments for better buttons support --- code/Extension/UserFormFieldEditorExtension.php | 2 +- code/UserForm.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/code/Extension/UserFormFieldEditorExtension.php b/code/Extension/UserFormFieldEditorExtension.php index 7f26cd7..35419ad 100644 --- a/code/Extension/UserFormFieldEditorExtension.php +++ b/code/Extension/UserFormFieldEditorExtension.php @@ -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'); diff --git a/code/UserForm.php b/code/UserForm.php index af2a57e..89bcf0d 100644 --- a/code/UserForm.php +++ b/code/UserForm.php @@ -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'));