mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Enum DBField class should default to ExactMatchFilter to avoid wrong results with overlapping Enum values in LIKE queries (see #5434) (from r103322)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@112132 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
49496e5c4b
commit
1379f133ea
@ -8,6 +8,8 @@ class Enum extends DBField {
|
||||
|
||||
protected $enum, $default;
|
||||
|
||||
public static $default_search_filter_class = 'ExactMatchFilter';
|
||||
|
||||
/**
|
||||
* Create a new Enum field.
|
||||
* You should create an enum field like this:
|
||||
|
Loading…
Reference in New Issue
Block a user