svn commit: r604422 - /ofbiz/branches/release4.0/applications/order/src/org/ofbiz/order/order/OrderReadHelper.java

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

svn commit: r604422 - /ofbiz/branches/release4.0/applications/order/src/org/ofbiz/order/order/OrderReadHelper.java

bibryam
Author: bibryam
Date: Sat Dec 15 04:48:02 2007
New Revision: 604422

URL: http://svn.apache.org/viewvc?rev=604422&view=rev
Log:
Applied fix from trunk for revision: 604420

Modified:
    ofbiz/branches/release4.0/applications/order/src/org/ofbiz/order/order/OrderReadHelper.java

Modified: ofbiz/branches/release4.0/applications/order/src/org/ofbiz/order/order/OrderReadHelper.java
URL: http://svn.apache.org/viewvc/ofbiz/branches/release4.0/applications/order/src/org/ofbiz/order/order/OrderReadHelper.java?rev=604422&r1=604421&r2=604422&view=diff
==============================================================================
--- ofbiz/branches/release4.0/applications/order/src/org/ofbiz/order/order/OrderReadHelper.java (original)
+++ ofbiz/branches/release4.0/applications/order/src/org/ofbiz/order/order/OrderReadHelper.java Sat Dec 15 04:48:02 2007
@@ -2592,7 +2592,7 @@
             if ("RENTAL_ORDER_ITEM".equals(orderItem.getString("orderItemTypeId")))    { // retrieve related work effort when required.
                 List WorkOrderItemFulfillments = null;
                 try {
-                    WorkOrderItemFulfillments = orderItem.getRelatedCache("WorkOrderItemFulfillment");
+                    WorkOrderItemFulfillments = orderItem.getDelegator().findByAndCache("WorkOrderItemFulfillment", UtilMisc.toMap("orderId", orderItem.getString("orderId"), "orderItemSeqId", orderItem.getString("orderItemSeqId")));
                 } catch (GenericEntityException e) {}
                 Iterator iter = WorkOrderItemFulfillments.iterator();
                 if (iter.hasNext())    {