From bf19a704a4a00f0635254d2a7cf34e823b710693 Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Wed, 16 Dec 2009 05:49:33 +0000 Subject: [PATCH] BUGFIX: LessThanFilter uses SearchFilter::getDbFormattedValue, just like GreaterThanFilter (from r95388) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@95637 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- search/filters/LessThanFilter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/search/filters/LessThanFilter.php b/search/filters/LessThanFilter.php index c9c9601dc..9b522ef51 100644 --- a/search/filters/LessThanFilter.php +++ b/search/filters/LessThanFilter.php @@ -17,7 +17,7 @@ class LessThanFilter extends SearchFilter { return $query->where(sprintf( "%s < '%s'", $this->getDbName(), - Convert::raw2sql($this->getValue()) + Convert::raw2sql($this->getDbFormattedValue()) )); }