From 3a792fc82d8d34f453466aefab499a78c09a43d6 Mon Sep 17 00:00:00 2001 From: Jared Kipe Date: Mon, 16 Mar 2020 12:58:21 -0700 Subject: [PATCH] IMP `hibou_professional` Fix error when attaching subscription, and testing 'help' url. --- hibou_professional/static/src/js/core.js | 5 ++++- hibou_professional/static/src/xml/templates.xml | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/hibou_professional/static/src/js/core.js b/hibou_professional/static/src/js/core.js index d1da15da..ee460f45 100644 --- a/hibou_professional/static/src/js/core.js +++ b/hibou_professional/static/src/js/core.js @@ -30,7 +30,10 @@ var HibouProfessionalSystrayWidget = Widget.extend({ }, get_subjects: function(type) { - return this.message_subjects[type] || []; + if (this.message_subjects && this.message_subjects[type]) { + return this.message_subjects[type] + } + return []; }, update_message_type: function(el) { diff --git a/hibou_professional/static/src/xml/templates.xml b/hibou_professional/static/src/xml/templates.xml index a35021e9..cda9bb9d 100644 --- a/hibou_professional/static/src/xml/templates.xml +++ b/hibou_professional/static/src/xml/templates.xml @@ -10,7 +10,7 @@