svn commit: r1686970 - /ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderServices.java

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

svn commit: r1686970 - /ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderServices.java

Deepak Dixit-5
Author: deepak
Date: Tue Jun 23 05:46:21 2015
New Revision: 1686970

URL: http://svn.apache.org/r1686970
Log:
Fixed illegal argument exception bug in create order service,  passed correct argument while performing getRelatedOne operation to get the PrdouctFacility records.

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

Modified: ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderServices.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderServices.java?rev=1686970&r1=1686969&r2=1686970&view=diff
==============================================================================
--- ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderServices.java (original)
+++ ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderServices.java Tue Jun 23 05:46:21 2015
@@ -1087,7 +1087,7 @@ public class OrderServices {
                             GenericValue productFacility = null;
 
                             try {
-                                productFacilities = product.getRelated("ProductFacility", product, null, true);
+                                productFacilities = product.getRelated("ProductFacility", null, null, true);
                             } catch (GenericEntityException e) {
                                 Debug.logWarning(e, "Error invoking getRelated in isCatalogInventoryAvailable", module);
                             }