DOCS incorrect method referenced

ModelAdmin uses 'getDefaultSearchContext': http://api.silverstripe.org/3.3/source-class-ModelAdmin.html#173
This commit is contained in:
Michael Strong 2016-05-24 13:25:02 +12:00
parent 2ae2675a47
commit db4dc64fb4

View File

@ -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')
));