From ce2fdc02abb909d984abf28a4fdb45c072655da8 Mon Sep 17 00:00:00 2001 From: Nicolas Lempereur Date: Mon, 30 Jul 2018 10:02:03 +0200 Subject: [PATCH] [FIX] im_livechat: bad rating=1 not 0 w/ 75d3121c In 75d3121c9 the bad rating was change from 0 to 1. This commit update the javascript feedback part so the behavior is the one expected. related to opw-1863312 closes #26043 --- addons/im_livechat/static/src/js/im_livechat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/im_livechat/static/src/js/im_livechat.js b/addons/im_livechat/static/src/js/im_livechat.js index 878f5e268b6..1cb57e11265 100644 --- a/addons/im_livechat/static/src/js/im_livechat.js +++ b/addons/im_livechat/static/src/js/im_livechat.js @@ -280,7 +280,7 @@ var Feedback = Widget.extend({ // only display textearea if bad smiley selected var close_chat = false; - if (this.rating === 0) { + if (this.rating === 1) { this.$('.o_livechat_rating_reason').show(); } else { this.$('.o_livechat_rating_reason').hide();