From a5d95b7a097eb692a0b3a06bf8b4636bd68c80d6 Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Wed, 16 Jan 2013 13:46:56 +0800 Subject: [PATCH] IDEMPIERE-554 Chat button broken --- .../WEB-INF/src/org/adempiere/webui/window/WChat.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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