diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/WChat.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/WChat.java index ce71179480..b6be87e433 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/WChat.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/WChat.java @@ -100,8 +100,13 @@ public class WChat extends Window implements EventListener, DialogEvents // Create Model 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); + 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(); // } // Attachment