From 4923a2597b77c3e5057f96ac6261a5b642467ddb Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Tue, 9 May 2017 11:11:08 +1200 Subject: [PATCH] Replaced usage of ResetFormAction (#1812) See https://github.com/silverstripe/silverstripe-framework/pull/6883 --- code/Controllers/CMSMain.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/Controllers/CMSMain.php b/code/Controllers/CMSMain.php index ad3f6ac7..944e4562 100644 --- a/code/Controllers/CMSMain.php +++ b/code/Controllers/CMSMain.php @@ -42,7 +42,6 @@ use SilverStripe\Forms\GridField\GridFieldSortableHeader; use SilverStripe\Forms\HiddenField; use SilverStripe\Forms\LabelField; use SilverStripe\Forms\LiteralField; -use SilverStripe\Forms\ResetFormAction; use SilverStripe\Forms\TabSet; use SilverStripe\Forms\TextField; use SilverStripe\ORM\ArrayList; @@ -836,7 +835,8 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr $actions = new FieldList( FormAction::create('doSearch', _t('SilverStripe\\CMS\\Controllers\\CMSMain.APPLY_FILTER', 'Search')) ->addExtraClass('btn btn-primary'), - ResetFormAction::create('clear', _t('SilverStripe\\CMS\\Controllers\\CMSMain.CLEAR_FILTER', 'Clear')) + FormAction::create('clear', _t('SilverStripe\\CMS\\Controllers\\CMSMain.CLEAR_FILTER', 'Clear')) + ->setAttribute('type', 'reset') ->addExtraClass('btn btn-secondary') );