Skip to content

Commit

Permalink
LeftAndMain - Removed changes to BatchActionsForm
Browse files Browse the repository at this point in the history
+ Removed the changes to the BatchActionsForm in favor of using `updateBatchActionsForm()` in an extension
  • Loading branch information
mooror committed Jul 7, 2022
1 parent 725d94c commit fe6c365
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions code/LeftAndMain.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
use InvalidArgumentException;
use LogicException;
use ReflectionClass;
use SilverStripe\CMS\Controllers\CMSMain;
use SilverStripe\CMS\Controllers\SilverStripeNavigator;
use SilverStripe\Control\ContentNegotiator;
use SilverStripe\Control\Controller;
Expand Down Expand Up @@ -1585,7 +1584,6 @@ public function BatchActionsForm()
$actionsMap[$action->Link] = $action->Title;
}

$cmsMain = singleton(CMSMain::class);
$form = new Form(
$this,
'BatchActionsForm',
Expand All @@ -1600,8 +1598,7 @@ public function BatchActionsForm()
->setAttribute(
'data-placeholder',
_t(__CLASS__ . '.DropdownBatchActionsDefault', 'Choose an action...')
),
$cmsMain->BatchActionParameters()
)
),
new FieldList(
FormAction::create('submit', _t(__CLASS__ . '.SUBMIT_BUTTON_LABEL', "Go"))
Expand Down

0 comments on commit fe6c365

Please sign in to comment.