From db4dc64fb4739fc9ea0360244ee9d81d12706862 Mon Sep 17 00:00:00 2001 From: Michael Strong Date: Tue, 24 May 2016 13:25:02 +1200 Subject: [PATCH] DOCS incorrect method referenced ModelAdmin uses 'getDefaultSearchContext': http://api.silverstripe.org/3.3/source-class-ModelAdmin.html#173 --- docs/en/02_Developer_Guides/12_Search/01_Searchcontext.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/02_Developer_Guides/12_Search/01_Searchcontext.md b/docs/en/02_Developer_Guides/12_Search/01_Searchcontext.md index 42442d6d9..e1e132168 100644 --- a/docs/en/02_Developer_Guides/12_Search/01_Searchcontext.md +++ b/docs/en/02_Developer_Guides/12_Search/01_Searchcontext.md @@ -46,7 +46,7 @@ and `MyDate`. The attribute `HiddenProperty` should not be searchable, and `MyDa 'MyDate' => 'Date' ); - public function getCustomSearchContext() { + public function getDefaultSearchContext() { $fields = $this->scaffoldSearchFields(array( 'restrictFields' => array('PublicProperty','MyDate') ));