svn commit: r1533741 - in /ofbiz/branches/release13.07: ./ 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: r1533741 - in /ofbiz/branches/release13.07: ./ applications/order/src/org/ofbiz/order/order/OrderServices.java

jleroux@apache.org
Author: jleroux
Date: Sat Oct 19 12:16:24 2013
New Revision: 1533741

URL: http://svn.apache.org/r1533741
Log:
"Applied fix from trunk for revision: 1529588"
------------------------------------------------------------------------
r1529588 | jleroux | 2013-10-06 09:55:01 +0200 (dim. 06 oct. 2013) | 4 lignes

A patch from  Jyoti Sharma  for "Add Item to approved order" https://issues.apache.org/jira/browse/OFBIZ-5340

While adding an item to an approved order if we select orderItemTypeId it gives an error message.
The error was occurring because in "orderItemTypeId" field, value being passed was that of "reasonEnumId". I am submitting a patch having the correct value.
------------------------------------------------------------------------


Modified:
    ofbiz/branches/release13.07/   (props changed)
    ofbiz/branches/release13.07/applications/order/src/org/ofbiz/order/order/OrderServices.java

Propchange: ofbiz/branches/release13.07/
------------------------------------------------------------------------------
  Merged /ofbiz/trunk:r1529588

Modified: ofbiz/branches/release13.07/applications/order/src/org/ofbiz/order/order/OrderServices.java
URL: http://svn.apache.org/viewvc/ofbiz/branches/release13.07/applications/order/src/org/ofbiz/order/order/OrderServices.java?rev=1533741&r1=1533740&r2=1533741&view=diff
==============================================================================
--- ofbiz/branches/release13.07/applications/order/src/org/ofbiz/order/order/OrderServices.java (original)
+++ ofbiz/branches/release13.07/applications/order/src/org/ofbiz/order/order/OrderServices.java Sat Oct 19 12:16:24 2013
@@ -3490,7 +3490,7 @@ public class OrderServices {
         Timestamp itemDesiredDeliveryDate = (Timestamp) context.get("itemDesiredDeliveryDate");
         String overridePrice = (String) context.get("overridePrice");
         String reasonEnumId = (String) context.get("reasonEnumId");
-        String orderItemTypeId = (String) context.get("reasonEnumId");
+        String orderItemTypeId = (String) context.get("orderItemTypeId");
         String changeComments = (String) context.get("changeComments");
         Boolean calcTax = (Boolean) context.get("calcTax");
         if (calcTax == null) {