From 8ae3f949ae2a796ba75375855bba4af3ae79d6b8 Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Fri, 5 Jan 2007 22:08:22 +0000 Subject: [PATCH] * Fix for bug [1628515] --- base/src/org/compiere/model/MSetup.java | 6 +++--- base/src/org/compiere/process/AllocationReset.java | 2 +- base/src/org/compiere/wf/MWFActivity.java | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/base/src/org/compiere/model/MSetup.java b/base/src/org/compiere/model/MSetup.java index bbbe69dbac..87242fa95e 100644 --- a/base/src/org/compiere/model/MSetup.java +++ b/base/src/org/compiere/model/MSetup.java @@ -1312,10 +1312,10 @@ public final class MSetup else log.log(Level.SEVERE, "CashBook NOT inserted"); // - m_trx.commit(); + boolean success = m_trx.commit(); m_trx.close(); - log.info("fini"); - return true; + log.info("finish"); + return success; } // createEntities /** diff --git a/base/src/org/compiere/process/AllocationReset.java b/base/src/org/compiere/process/AllocationReset.java index 3992124bf2..78a6830c3b 100644 --- a/base/src/org/compiere/process/AllocationReset.java +++ b/base/src/org/compiere/process/AllocationReset.java @@ -171,7 +171,7 @@ public class AllocationReset extends SvrProcess success = true; } if (success) - m_trx.commit(); + success = m_trx.commit(); else m_trx.rollback(); return success; diff --git a/base/src/org/compiere/wf/MWFActivity.java b/base/src/org/compiere/wf/MWFActivity.java index b748ff55b4..c2688c5baf 100644 --- a/base/src/org/compiere/wf/MWFActivity.java +++ b/base/src/org/compiere/wf/MWFActivity.java @@ -715,7 +715,7 @@ public class MWFActivity extends X_AD_WF_Activity implements Runnable //setWFState (done ? StateEngine.STATE_Completed : StateEngine.STATE_Suspended); //end vpj-cd e-evolution 03/08/2005 PostgreSQL /**** Trx End ****/ - m_trx.commit(); + m_trx.commit(true); m_trx.close(); m_trx = null; //begin vpj-cd e-evolution 03/08/2005 PostgreSQL