From a52eebfd1e552852bdced621aa393992637b0f2c Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Mon, 6 Jan 2025 16:16:01 +1300 Subject: [PATCH] FIX Stop calling deprecated API --- src/Forms/GridFieldConfig_Lumberjack.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Forms/GridFieldConfig_Lumberjack.php b/src/Forms/GridFieldConfig_Lumberjack.php index 443097f..27cb3d7 100644 --- a/src/Forms/GridFieldConfig_Lumberjack.php +++ b/src/Forms/GridFieldConfig_Lumberjack.php @@ -27,7 +27,6 @@ class GridFieldConfig_Lumberjack extends GridFieldConfig public function __construct($itemsPerPage = null) { parent::__construct($itemsPerPage); - $this->addComponent(new GridFieldButtonRow('before')); $this->addComponent(new GridFieldSiteTreeAddNewButton('buttons-before-left')); $this->addComponent(new GridFieldToolbarHeader()); @@ -36,9 +35,7 @@ public function __construct($itemsPerPage = null) $this->addComponent(new GridFieldDataColumns()); $this->addComponent(new GridFieldSiteTreeEditButton()); $this->addComponent(new GridFieldPageCount('toolbar-header-right')); - $this->addComponent($pagination = new GridFieldPaginator($itemsPerPage)); + $this->addComponent(new GridFieldPaginator($itemsPerPage)); $this->addComponent(new GridFieldSiteTreeState()); - - $pagination->setThrowExceptionOnBadDataType(true); } }