From 567288fbae88ced23804d048583e8246a3f62a2b Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Fri, 1 Feb 2008 18:34:00 +0000 Subject: [PATCH] Fix [ 1783036 ] Change log management inconsistent for update and delete --- base/src/org/compiere/model/PO.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/base/src/org/compiere/model/PO.java b/base/src/org/compiere/model/PO.java index e0c9e8194f..0ec966a2ca 100644 --- a/base/src/org/compiere/model/PO.java +++ b/base/src/org/compiere/model/PO.java @@ -2627,8 +2627,7 @@ public abstract class PO MSession session = MSession.get (p_ctx, false); if (session == null) log.fine("No Session found"); - else if (m_IDs.length == 1 - && MChangeLog.isLogged(AD_Table_ID)) + else if (m_IDs.length == 1) { int AD_ChangeLog_ID = 0; int size = get_ColumnCount(); @@ -2642,7 +2641,7 @@ public abstract class PO ) { MChangeLog cLog = session.changeLog ( - m_trxName, AD_ChangeLog_ID, + m_trxName != null ? m_trxName : localTrxName, AD_ChangeLog_ID, AD_Table_ID, p_info.getColumn(i).AD_Column_ID, Record_ID, getAD_Client_ID(), getAD_Org_ID(), value, null); if (cLog != null)