Skip to content

Commit

Permalink
Merge branch '7.0' into 7
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Jan 8, 2025
2 parents fb48915 + 394d32a commit 17896e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
1 change: 0 additions & 1 deletion code/Model/UserDefinedForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ class UserDefinedForm extends Page

/**
* @var string
* @deprecated 6.4.0 Will be renamed to cms_icon_class
*/
private static $cms_icon_class = 'font-icon-p-list';

Expand Down
17 changes: 2 additions & 15 deletions code/UserForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
use SilverStripe\UserForms\Model\EditableFormField;
use SilverStripe\View\Requirements;
use SilverStripe\Core\Config\Configurable;
use SilverStripe\Dev\Deprecation;

/**
* Defines the user defined functionality to be applied to any {@link DataObject}
Expand Down Expand Up @@ -169,12 +168,6 @@ trait UserForm

private static $non_live_permissions = ['SITETREE_VIEW_ALL'];

/**
* Unused property
* @deprecated 5.3.0 Will be removed without equivalent functionality to replace it
*/
protected $fieldsFromTo = [];

/**
* @var array
*/
Expand Down Expand Up @@ -269,13 +262,13 @@ public function getSubmissionsGridField()

$config = GridFieldConfig::create();
$config->addComponent(new GridFieldToolbarHeader());
$config->addComponent($sort = new GridFieldSortableHeader());
$config->addComponent(new GridFieldSortableHeader());
$config->addComponent($filter = new UserFormsGridFieldFilterHeader());
$config->addComponent(new GridFieldDataColumns());
$config->addComponent(new GridFieldEditButton());
$config->addComponent(new GridFieldDeleteAction());
$config->addComponent(new GridFieldPageCount('toolbar-header-right'));
$config->addComponent($pagination = new GridFieldPaginator(25));
$config->addComponent(new GridFieldPaginator(25));
$config->addComponent(new GridFieldDetailForm(null, true, false));
$config->addComponent(new GridFieldButtonRow('after'));
$config->addComponent($export = new GridFieldExportButton('buttons-after-left'));
Expand All @@ -297,12 +290,6 @@ public function getSubmissionsGridField()
$config->addComponent(new BulkManager);
}

Deprecation::withSuppressedNotice(function () use ($sort, $filter, $pagination) {
$sort->setThrowExceptionOnBadDataType(false);
$filter->setThrowExceptionOnBadDataType(false);
$pagination->setThrowExceptionOnBadDataType(false);
});

// attach every column to the print view form
$columns['Created'] = 'Created';
$columns['SubmittedBy.Email'] = 'Submitter';
Expand Down

0 comments on commit 17896e3

Please sign in to comment.