You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ec...@apache.org on 2011/03/11 22:57:48 UTC
svn commit: r1080776 -
/ofbiz/trunk/applications/product/src/org/ofbiz/product/inventory/InventoryServices.java
Author: eckardjf
Date: Fri Mar 11 21:57:48 2011
New Revision: 1080776
URL: http://svn.apache.org/viewvc?rev=1080776&view=rev
Log:
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);