From 016ca761e0e79891ea6be5afa44bc2a142f3b1d3 Mon Sep 17 00:00:00 2001 From: "Denis Vermylen (dve)" Date: Wed, 14 Sep 2016 14:08:11 +0200 Subject: [PATCH] [FIX] livechat: fix livechat display for website visitor add customer_email_data in the add_message function, otherwise he would crash later trying to get this key's value's length and nothing would be displayed for the website visitor. --- addons/im_livechat/static/src/js/im_livechat.js | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/im_livechat/static/src/js/im_livechat.js b/addons/im_livechat/static/src/js/im_livechat.js index f6634c0665a..84e123a18bd 100644 --- a/addons/im_livechat/static/src/js/im_livechat.js +++ b/addons/im_livechat/static/src/js/im_livechat.js @@ -196,6 +196,7 @@ var LivechatButton = Widget.extend({ date: moment(time.str_to_datetime(data.date)), is_needaction: false, is_note: data.is_note, + customer_email_data: [] }; // Compute displayed author name or email