Skip to content

Commit

Permalink
Merge pull request #109 from sunnysideup/patch-1
Browse files Browse the repository at this point in the history
fix common issue in ModelAdmin search  (#101)
  • Loading branch information
sheadawson authored Nov 19, 2020
2 parents 263b9d8 + 5a7193c commit 82372a3
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/Models/Link.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,17 @@ class Link extends DataObject
'LinkType',
'LinkURL',
];


/**
* @var array
*/
private static $searchable_fields = [
'Title' => 'PartialMatchFilter',
'URL' => 'PartialMatchFilter',
'Phone' => 'PartialMatchFilter',
'Email' => 'PartialMatchFilter',
];

/**
* A map of templates that are available for rendering
* Link objects with
Expand Down

0 comments on commit 82372a3

Please sign in to comment.