mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
commit
213ec240b0
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user