FIX Remove redundant "rightGroup" logic and increase getRightGroupField to protected

This commit is contained in:
Robbie Averill 2018-11-26 12:42:47 +01:00
parent 1f1c344272
commit efa427fc45

View File

@ -274,7 +274,7 @@ class GridFieldDetailForm_ItemRequest extends RequestHandler
/** /**
* @return CompositeField Returns the right aligned toolbar group field along with its FormAction's * @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 = CompositeField::create()->setName('RightGroup');
$rightGroup->addExtraClass('ml-auto'); $rightGroup->addExtraClass('ml-auto');
@ -361,10 +361,6 @@ class GridFieldDetailForm_ItemRequest extends RequestHandler
$this->extend('updateFormActions', $actions); $this->extend('updateFormActions', $actions);
if (isset($rightGroup)) {
$actions->push($rightGroup);
}
return $actions; return $actions;
} }