mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Create SearchContext via Injector (#9156)
This commit is contained in:
parent
89eb6c88b2
commit
82cc8b40a4
@ -2201,7 +2201,7 @@ class DataObject extends ViewableData implements DataObjectInterface, i18nEntity
|
||||
*/
|
||||
public function getDefaultSearchContext()
|
||||
{
|
||||
return new SearchContext(
|
||||
return SearchContext::create(
|
||||
static::class,
|
||||
$this->scaffoldSearchFields(),
|
||||
$this->defaultSearchFilters()
|
||||
|
Loading…
x
Reference in New Issue
Block a user