IDEMPIERE-530 improve performance to enable attachments and chat buttons

This commit is contained in:
Carlos Ruiz 2012-12-20 14:22:30 -05:00
parent b26888800d
commit c7ed781ae4
2 changed files with 2 additions and 2 deletions

View File

@ -79,7 +79,7 @@ public class AChat extends CDialog
log.log(Level.SEVERE, "", ex);
}
// Create Model
if (CM_Chat_ID == 0)
if (CM_Chat_ID > 0)
m_chat = new MChat (Env.getCtx(), AD_Table_ID, Record_ID, Description, trxName);
else
m_chat = new MChat (Env.getCtx(), CM_Chat_ID, trxName);

View File

@ -97,7 +97,7 @@ public class WChat extends Window implements EventListener<Event>, DialogEvents
log.log(Level.SEVERE, "", ex);
}
// Create Model
if (CM_Chat_ID == 0)
if (CM_Chat_ID > 0)
m_chat = new MChat (Env.getCtx(), AD_Table_ID, Record_ID, Description, trxName);
else
m_chat = new MChat (Env.getCtx(), CM_Chat_ID, trxName);