mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #7683 from pitchandtone/patch-7
Updating searchable fields w namespaces
This commit is contained in:
commit
daaaea9dc7
@ -86,7 +86,7 @@ class MyDataObject extends DataObject
|
|||||||
|
|
||||||
private static $searchable_fields = [
|
private static $searchable_fields = [
|
||||||
'Name' => 'PartialMatchFilter',
|
'Name' => 'PartialMatchFilter',
|
||||||
'ProductCode' => 'NumericField'
|
'ProductCode' => NumericField::class
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
@ -102,12 +102,12 @@ class MyDataObject extends DataObject
|
|||||||
|
|
||||||
private static $searchable_fields = [
|
private static $searchable_fields = [
|
||||||
'Name' => [
|
'Name' => [
|
||||||
'field' => 'TextField',
|
'field' => TextField::class,
|
||||||
'filter' => 'PartialMatchFilter',
|
'filter' => 'PartialMatchFilter',
|
||||||
],
|
],
|
||||||
'ProductCode' => [
|
'ProductCode' => [
|
||||||
'title' => 'Product code #',
|
'title' => 'Product code #',
|
||||||
'field' => 'NumericField',
|
'field' => NumericField::class,
|
||||||
'filter' => 'PartialMatchFilter',
|
'filter' => 'PartialMatchFilter',
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
Loading…
Reference in New Issue
Block a user