[OFBiz] SVN: r5629 -
trunk/applications/order/webapp/ordermgr/WEB-INF/actions/return
sichen at svn.ofbiz.org
sichen at svn.ofbiz.org
Fri Sep 2 13:24:48 EDT 2005
Author: sichen
Date: 2005-09-02 12:24:44 -0500 (Fri, 02 Sep 2005)
New Revision: 5629
Modified:
trunk/applications/order/webapp/ordermgr/WEB-INF/actions/return/returnHeader.bsh
Log:
fixed bug where viewing return header crashes due to attempt to order the OrderRoles by fromDate, which isn't a field of OrderRole
Modified: trunk/applications/order/webapp/ordermgr/WEB-INF/actions/return/returnHeader.bsh
===================================================================
--- trunk/applications/order/webapp/ordermgr/WEB-INF/actions/return/returnHeader.bsh 2005-09-02 14:18:07 UTC (rev 5628)
+++ trunk/applications/order/webapp/ordermgr/WEB-INF/actions/return/returnHeader.bsh 2005-09-02 17:24:44 UTC (rev 5629)
@@ -79,7 +79,7 @@
orderRole = null;
orderHeader = null;
if (orderId != null) {
- orderRoles = delegator.findByAnd("OrderRole", UtilMisc.toMap("orderId", orderId, "roleTypeId", "BILL_TO_CUSTOMER"), UtilMisc.toList("-fromDate"));
+ orderRoles = delegator.findByAnd("OrderRole", UtilMisc.toMap("orderId", orderId, "roleTypeId", "BILL_TO_CUSTOMER"));
orderRoles = EntityUtil.filterByDate(orderRoles);
orderRole = EntityUtil.getFirst(orderRoles);
orderHeader = delegator.findByPrimaryKeyCache("OrderHeader", Utilmisc.toMap("orderId", orderId));
More information about the Svn
mailing list