Merge pull request #8635 from creative-commoners/pulls/4.4/redundant-right-group

FIX Remove redundant "rightGroup" logic and increase getRightGroupField to protected
This commit is contained in:
Loz Calver 2018-11-26 18:28:01 +01:00 committed by GitHub
commit 213ec240b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
*/
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;
}