* Part of the fix for bug [1628515]

This commit is contained in:
Heng Sin Low 2007-01-05 12:20:39 +00:00
parent b2cce7d61f
commit 6d9d26be64
1 changed files with 39 additions and 32 deletions

View File

@ -2461,7 +2461,9 @@ public abstract class PO
else
{
if (localTrx != null)
localTrx.commit();
success = localTrx.commit();
if (success)
{
// Change Log
MSession session = MSession.get (p_ctx, false);
if (session == null)
@ -2498,6 +2500,11 @@ public abstract class PO
log.fine("[" + m_trxName + "] - complete");
m_attachment = null;
}
else
{
log.warning("Not deleted");
}
}
if (localTrx != null)
localTrx.close();
localTrx = null;