IDEMPIERE-530 improve performance to enable attachments and chat buttons
IDEMPIERE-554 Chat button broken
This commit is contained in:
parent
7e24ff5ae5
commit
9a1fa58f9f
|
@ -80,9 +80,9 @@ public class AChat extends CDialog
|
||||||
}
|
}
|
||||||
// Create Model
|
// 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);
|
m_chat = new MChat (Env.getCtx(), CM_Chat_ID, trxName);
|
||||||
|
else
|
||||||
|
m_chat = new MChat (Env.getCtx(), AD_Table_ID, Record_ID, Description, trxName);
|
||||||
loadChat();
|
loadChat();
|
||||||
//
|
//
|
||||||
try
|
try
|
||||||
|
|
|
@ -99,14 +99,9 @@ public class WChat extends Window implements EventListener<Event>, DialogEvents
|
||||||
}
|
}
|
||||||
// Create Model
|
// Create Model
|
||||||
if (CM_Chat_ID > 0)
|
if (CM_Chat_ID > 0)
|
||||||
|
m_chat = new MChat (Env.getCtx(), CM_Chat_ID, trxName);
|
||||||
|
else
|
||||||
m_chat = new MChat (Env.getCtx(), AD_Table_ID, Record_ID, Description, trxName);
|
m_chat = new MChat (Env.getCtx(), AD_Table_ID, Record_ID, Description, trxName);
|
||||||
else
|
|
||||||
{
|
|
||||||
m_chat = new MChat (Env.getCtx(), 0, trxName);
|
|
||||||
m_chat.setDescription(Description);
|
|
||||||
m_chat.setAD_Table_ID(AD_Table_ID);
|
|
||||||
m_chat.setRecord_ID(Record_ID);
|
|
||||||
}
|
|
||||||
loadChat();
|
loadChat();
|
||||||
//
|
//
|
||||||
} // Attachment
|
} // Attachment
|
||||||
|
|
Loading…
Reference in New Issue