Author: eckardjf
Date: Fri Mar 11 21:57:48 2011
New Revision: 1080776
URL:
http://svn.apache.org/viewvc?rev=1080776&view=revLog:
fixed copy/paste error; resultUpdate was not being checked
Modified:
ofbiz/trunk/applications/product/src/org/ofbiz/product/inventory/InventoryServices.java
Modified: ofbiz/trunk/applications/product/src/org/ofbiz/product/inventory/InventoryServices.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/src/org/ofbiz/product/inventory/InventoryServices.java?rev=1080776&r1=1080775&r2=1080776&view=diff==============================================================================
--- ofbiz/trunk/applications/product/src/org/ofbiz/product/inventory/InventoryServices.java (original)
+++ ofbiz/trunk/applications/product/src/org/ofbiz/product/inventory/InventoryServices.java Fri Mar 11 21:57:48 2011
@@ -145,7 +145,7 @@ public class InventoryServices {
UtilMisc.toMap("errorString", ""), locale), null, null, resultNew);
}
Map<String, Object> resultUpdate = dctx.getDispatcher().runSync("createInventoryItemDetail", createUpdateDetailMap);
- if (ServiceUtil.isError(resultNew)) {
+ if (ServiceUtil.isError(resultUpdate)) {
return ServiceUtil.returnError(UtilProperties.getMessage(resource,
"ProductInventoryItemDetailCreateProblem",
UtilMisc.toMap("errorString", ""), locale), null, null, resultUpdate);