From 1379f133ea2bd2f45aafdcfd4916943d36afde32 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Wed, 13 Oct 2010 03:40:36 +0000 Subject: [PATCH] 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 --- core/model/fieldtypes/Enum.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/model/fieldtypes/Enum.php b/core/model/fieldtypes/Enum.php index 6bb2681f8..f0014cdaf 100755 --- a/core/model/fieldtypes/Enum.php +++ b/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: