FIX Don't emit deprecation warning for calling deprecated methods (#1293)

This commit is contained in:
Guy Sartorelli 2024-05-24 12:52:58 +12:00 committed by GitHub
parent 83fafdf53d
commit 24ba62ab06
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -37,6 +37,7 @@ use SilverStripe\UserForms\Model\Submission\SubmittedForm;
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}
@ -318,9 +319,11 @@ SQL;
$config->addComponent(new BulkManager);
}
Deprecation::withNoReplacement(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';