diff options
| author | Christophe Simonis <chs@odoo.com> | 2019-02-04 13:27:22 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2019-02-04 13:27:22 +0100 |
| commit | 4400cce8201579fc9769b5e2d33829b43bce82d9 (patch) | |
| tree | c507c7dca21bfb0c3bdca8ba57e63a6ab16f230c /addons/mail/static/src/js/thread_windows/thread_window.js | |
| parent | ceb05489303dee728c3960a87bf23795efc374c4 (diff) | |
| parent | 4524ad06a8af82ab337fc5aa1d5aa8d8d3024923 (diff) | |
[MERGE] forward port branch saas-12.1 up to 4524ad06a8a
Diffstat (limited to 'addons/mail/static/src/js/thread_windows/thread_window.js')
| -rw-r--r-- | addons/mail/static/src/js/thread_windows/thread_window.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/addons/mail/static/src/js/thread_windows/thread_window.js b/addons/mail/static/src/js/thread_windows/thread_window.js index 57907a55943..331228c91c8 100644 --- a/addons/mail/static/src/js/thread_windows/thread_window.js +++ b/addons/mail/static/src/js/thread_windows/thread_window.js @@ -280,8 +280,10 @@ var ThreadWindow = AbstractThreadWindow.extend({ clear_breadcrumbs: false, active_id: this.hasThread() ? this._getThreadID() : undefined, on_reverse_breadcrumb: function () { - self.call('mail_service', 'getMailBus') - .trigger('discuss_open', false); + var mailBus = self.call('mail_service', 'getMailBus'); + if (mailBus) { + mailBus.trigger('discuss_open', false); + } }, }); } |
