From 2ace7957769cde5a2f1b99c3f7656708b1cde848 Mon Sep 17 00:00:00 2001 From: Elaine Tan Date: Fri, 26 Apr 2013 16:41:33 +0800 Subject: [PATCH] IDEMPIERE-862 Create lines from MPS Lines function is not working - fix deadlock problem --- org.adempiere.base/src/org/compiere/model/MPackage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.adempiere.base/src/org/compiere/model/MPackage.java b/org.adempiere.base/src/org/compiere/model/MPackage.java index edb4d71f34..fb50e5a669 100644 --- a/org.adempiere.base/src/org/compiere/model/MPackage.java +++ b/org.adempiere.base/src/org/compiere/model/MPackage.java @@ -579,7 +579,7 @@ public class MPackage extends X_M_Package int[] ids = MPackageMPS.getAllIDs(MPackageMPS.Table_Name, "M_Package_ID = " + getM_Package_ID(), get_TrxName()); for (int i = 0; i < ids.length; i++) { - MPackageMPS packageMPS = new MPackageMPS(getCtx(), ids[i], get_TrxName()); + MPackageMPS packageMPS = new MPackageMPS(getCtx(), ids[i], null); if (packageMPS.getWeight() == null || packageMPS.getWeight().compareTo(BigDecimal.ZERO) == 0) { String sql = "SELECT SUM(LineWeight) FROM X_PackageLineWeight plw WHERE plw.M_PackageMPS_ID=?";