From efa427fc452fac132f50c7bc620dcbbc53f66c5a Mon Sep 17 00:00:00 2001 From: Robbie Averill Date: Mon, 26 Nov 2018 12:42:47 +0100 Subject: [PATCH] FIX Remove redundant "rightGroup" logic and increase getRightGroupField to protected --- src/Forms/GridField/GridFieldDetailForm_ItemRequest.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Forms/GridField/GridFieldDetailForm_ItemRequest.php b/src/Forms/GridField/GridFieldDetailForm_ItemRequest.php index f83442288..c4a715863 100644 --- a/src/Forms/GridField/GridFieldDetailForm_ItemRequest.php +++ b/src/Forms/GridField/GridFieldDetailForm_ItemRequest.php @@ -274,7 +274,7 @@ class GridFieldDetailForm_ItemRequest extends RequestHandler /** * @return CompositeField Returns the right aligned toolbar group field along with its FormAction's */ - private function getRightGroupField() + protected function getRightGroupField() { $rightGroup = CompositeField::create()->setName('RightGroup'); $rightGroup->addExtraClass('ml-auto'); @@ -361,10 +361,6 @@ class GridFieldDetailForm_ItemRequest extends RequestHandler $this->extend('updateFormActions', $actions); - if (isset($rightGroup)) { - $actions->push($rightGroup); - } - return $actions; }