svn commit: r1195354 - /ofbiz/trunk/framework/common/src/org/ofbiz/common/FindServices.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1195354 - /ofbiz/trunk/framework/common/src/org/ofbiz/common/FindServices.java

hansbak-2
Author: hansbak
Date: Mon Oct 31 06:48:10 2011
New Revision: 1195354

URL: http://svn.apache.org/viewvc?rev=1195354&view=rev
Log:
find service did not work properly on the selection end date

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=1195354&r1=1195353&r2=1195354&view=diff
==============================================================================
--- ofbiz/trunk/framework/common/src/org/ofbiz/common/FindServices.java (original)
+++ ofbiz/trunk/framework/common/src/org/ofbiz/common/FindServices.java Mon Oct 31 06:48:10 2011
@@ -310,6 +310,10 @@ public class FindServices {
                 fieldValue = fieldValue + "%";
             } else if ("opLessThan".equals(operation)) {
                 fieldOp = EntityOperator.LESS_THAN;
+            } else if ("upToDay".equals(operation)) {
+                fieldOp = EntityOperator.LESS_THAN;
+            } else if ("upThruDay".equals(operation)) {
+                fieldOp = EntityOperator.LESS_THAN_EQUAL_TO;
             } else if (operation.equals("greaterThanFromDayStart")) {
                 String timeStampString = (String) fieldValue;
                 Object startValue = modelField.getModelEntity().convertFieldValue(modelField, dayStart(timeStampString, 0), delegator, context);