* Part of the fix for bug [1628515]
This commit is contained in:
parent
b2cce7d61f
commit
6d9d26be64
|
@ -2461,42 +2461,49 @@ public abstract class PO
|
|||
else
|
||||
{
|
||||
if (localTrx != null)
|
||||
localTrx.commit();
|
||||
// Change Log
|
||||
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))
|
||||
success = localTrx.commit();
|
||||
if (success)
|
||||
{
|
||||
int AD_ChangeLog_ID = 0;
|
||||
int size = get_ColumnCount();
|
||||
for (int i = 0; i < size; i++)
|
||||
// Change Log
|
||||
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))
|
||||
{
|
||||
Object value = m_oldValues[i];
|
||||
if (value != null
|
||||
&& !p_info.isEncrypted(i) // not encrypted
|
||||
&& !p_info.isVirtualColumn(i) // no virtual column
|
||||
&& !"Password".equals(p_info.getColumnName(i))
|
||||
)
|
||||
int AD_ChangeLog_ID = 0;
|
||||
int size = get_ColumnCount();
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
MChangeLog cLog = session.changeLog (
|
||||
m_trxName, 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)
|
||||
AD_ChangeLog_ID = cLog.getAD_ChangeLog_ID();
|
||||
}
|
||||
} // for all fields
|
||||
Object value = m_oldValues[i];
|
||||
if (value != null
|
||||
&& !p_info.isEncrypted(i) // not encrypted
|
||||
&& !p_info.isVirtualColumn(i) // no virtual column
|
||||
&& !"Password".equals(p_info.getColumnName(i))
|
||||
)
|
||||
{
|
||||
MChangeLog cLog = session.changeLog (
|
||||
m_trxName, 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)
|
||||
AD_ChangeLog_ID = cLog.getAD_ChangeLog_ID();
|
||||
}
|
||||
} // for all fields
|
||||
}
|
||||
|
||||
// Housekeeping
|
||||
m_IDs[0] = I_ZERO;
|
||||
if (m_trxName == null)
|
||||
log.fine("complete");
|
||||
else
|
||||
log.fine("[" + m_trxName + "] - complete");
|
||||
m_attachment = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
log.warning("Not deleted");
|
||||
}
|
||||
|
||||
// Housekeeping
|
||||
m_IDs[0] = I_ZERO;
|
||||
if (m_trxName == null)
|
||||
log.fine("complete");
|
||||
else
|
||||
log.fine("[" + m_trxName + "] - complete");
|
||||
m_attachment = null;
|
||||
}
|
||||
if (localTrx != null)
|
||||
localTrx.close();
|
||||
|
|
Loading…
Reference in New Issue