Permalink
Browse files

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
  • Loading branch information...
1 parent 49496e5 commit 1379f133ea2bd2f45aafdcfd4916943d36afde32 @sminnee sminnee committed Oct 13, 2010
Showing with 2 additions and 0 deletions.
  1. +2 −0 core/model/fieldtypes/Enum.php
@@ -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:

0 comments on commit 1379f13

Please sign in to comment.