Author: hansbak
Date: Tue May 18 03:55:48 2010
New Revision: 945482

URL: http://svn.apache.org/viewvc?rev=945482&view=rev
Log:
date range selection in a form did not work for 'lessthan' operator added to 
the find services

Modified:
    ofbiz/trunk/framework/common/src/org/ofbiz/common/FindServices.java

Modified: ofbiz/trunk/framework/common/src/org/ofbiz/common/FindServices.java
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/framework/common/src/org/ofbiz/common/FindServices.java?rev=945482&r1=945481&r2=945482&view=diff
==============================================================================
--- ofbiz/trunk/framework/common/src/org/ofbiz/common/FindServices.java 
(original)
+++ ofbiz/trunk/framework/common/src/org/ofbiz/common/FindServices.java Tue May 
18 03:55:48 2010
@@ -307,6 +307,8 @@ public class FindServices {
             } else if ("not-like".equals(operation) || 
"notLike".equals(operation)) {
                 fieldOp = EntityOperator.NOT_LIKE;
                 fieldValue = fieldValue + "%";
+            } else if ("opLessThan".equals(operation)) {
+                fieldOp = EntityOperator.LESS_THAN;
             } else if (operation.equals("greaterThanFromDayStart")) {
                 String timeStampString = (String) fieldValue;
                 Object startValue = 
modelField.getModelEntity().convertFieldValue(modelField, 
dayStart(timeStampString, 0), delegator, context);


Reply via email to