Commit 82fafc10ec2b7ece7fec3e4a447579a23465e4ac
1 parent
c01a6a89
KTS-673
"The search algorithm needs some work" Updated. Strings were not being coverted to date correctly for comparison Committed By: Conrad Vermeulen Reviewed By: Kevin Fourie git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@7521 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
3 changed files
with
3 additions
and
5 deletions
search2/search/fields/CheckedOutDeltaField.inc.php
| ... | ... | @@ -23,8 +23,7 @@ class CheckedOutDeltaField extends DBFieldExpr |
| 23 | 23 | |
| 24 | 24 | public function modifyValue($value) |
| 25 | 25 | { |
| 26 | - | |
| 27 | - return "cast($this->modifiedName + $value as date)"; | |
| 26 | + return "cast(cast($this->modifiedName as date) + $value as date)"; | |
| 28 | 27 | } |
| 29 | 28 | |
| 30 | 29 | public function getInputRequirements() | ... | ... |
search2/search/fields/CreatedDeltaField.inc.php
| ... | ... | @@ -23,8 +23,7 @@ class CreatedDeltaField extends DBFieldExpr |
| 23 | 23 | |
| 24 | 24 | public function modifyValue($value) |
| 25 | 25 | { |
| 26 | - | |
| 27 | - return "cast($this->modifiedName + $value as date)"; | |
| 26 | + return "cast(cast($this->modifiedName as date) + $value as date)"; | |
| 28 | 27 | } |
| 29 | 28 | |
| 30 | 29 | public function getInputRequirements() | ... | ... |
search2/search/fields/ModifiedDeltaField.inc.php
| ... | ... | @@ -22,7 +22,7 @@ class ModifiedDeltaField extends DBFieldExpr |
| 22 | 22 | |
| 23 | 23 | public function modifyValue($value) |
| 24 | 24 | { |
| 25 | - return "cast($this->modifiedName + $value as date)"; | |
| 25 | + return "cast(cast($this->modifiedName as date) + $value as date)"; | |
| 26 | 26 | } |
| 27 | 27 | |
| 28 | 28 | public function getInputRequirements() | ... | ... |