Author: mor
Date: Thu Mar 21 10:49:38 2013
New Revision: 1459222
URL:
http://svn.apache.org/r1459222Log:
OrderItemAttributes not correctly saved while creating an order due to a typo in a variable name, reportreported and patch provided by Mirko as part of OFBIZ-5158.
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=1459222&r1=1459221&r2=1459222&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 Thu Mar 21 10:49:38 2013
@@ -608,7 +608,7 @@ public class OrderServices {
// set the order item attributes
List<GenericValue> orderItemAttributes = UtilGenerics.checkList(context.get("orderItemAttributes"));
if (UtilValidate.isNotEmpty(orderItemAttributes)) {
- for(GenericValue oiatt : orderAttributes) {
+ for(GenericValue oiatt : orderItemAttributes) {
oiatt.set("orderId", orderId);
toBeStored.add(oiatt);
}