From 13c5b4f02e3ca4c9ef03c66ada3cdfba631c2a86 Mon Sep 17 00:00:00 2001 From: teo_sarca Date: Mon, 22 Oct 2007 10:34:32 +0000 Subject: [PATCH] BF [ 1817757 ] Error on saving MInventoryLine in a custom environment http://sourceforge.net/tracker/index.php?func=detail&aid=1817757&group_id=176962&atid=879332 --- base/src/org/compiere/model/MInventoryLine.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/base/src/org/compiere/model/MInventoryLine.java b/base/src/org/compiere/model/MInventoryLine.java index 9edd1f9049..05058ce582 100644 --- a/base/src/org/compiere/model/MInventoryLine.java +++ b/base/src/org/compiere/model/MInventoryLine.java @@ -28,6 +28,9 @@ import org.compiere.util.*; * * @author Jorg Janke * @version $Id: MInventoryLine.java,v 1.3 2006/07/30 00:51:02 jjanke Exp $ + * + * @author Teo Sarca, SC ARHIPAC SERVICE SRL + *
  • BF [ 1817757 ] Error on saving MInventoryLine in a custom environment */ public class MInventoryLine extends X_M_InventoryLine { @@ -362,6 +365,9 @@ public class MInventoryLine extends X_M_InventoryLine */ protected boolean afterSave (boolean newRecord, boolean success) { + if (!success) + return false; + // Create MA if (newRecord && success && m_isManualEntry && getM_AttributeSetInstance_ID() == 0)