svn commit: r1652706 - /ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderLookupServices.java

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

svn commit: r1652706 - /ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderLookupServices.java

jleroux@apache.org
Author: jleroux
Date: Sun Jan 18 06:27:17 2015
New Revision: 1652706

URL: http://svn.apache.org/r1652706
Log:
A patch from Christian Carlow for "Find Order filtering broken" https://issues.apache.org/jira/browse/OFBIZ-5999

The Find Order page at ordermgr/control/searchorders does not filter results.

This patch adds the .where(cond) method missing from the query statement.

Modified:
    ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderLookupServices.java

Modified: ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderLookupServices.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderLookupServices.java?rev=1652706&r1=1652705&r2=1652706&view=diff
==============================================================================
--- ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderLookupServices.java (original)
+++ ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderLookupServices.java Sun Jan 18 06:27:17 2015
@@ -591,6 +591,7 @@ public class OrderLookupServices {
                 eli = EntityQuery.use(delegator)
                         .select(fieldsToSelect)
                         .from(dve)
+                        .where(cond)
                         .orderBy(orderBy)
                         .distinct() // set distinct on so we only get one row per order
                         .maxRows(highIndex)