diff options
| author | Christophe Simonis <chs@odoo.com> | 2019-02-22 16:25:02 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2019-02-22 16:25:02 +0100 |
| commit | 0e7675847f05a63cf013210dabac82c94845217f (patch) | |
| tree | ae87ad0d0b4d792cb7a17ea1b5428b5d96ce8c56 /addons/mail/static/src/js/thread_windows/thread_window.js | |
| parent | 1af67ffdfa370ade4ea12f227d7c4fae5bc02170 (diff) | |
| parent | 0f4abc5c228747c7eee79f820fa2ea9c23d73e5f (diff) | |
[MERGE] forward port branch saas-12.1 up to 0f4abc5c228
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 | 3 |
1 files changed, 3 insertions, 0 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 11a7f8a7926..e5496e0bc3c 100644 --- a/addons/mail/static/src/js/thread_windows/thread_window.js +++ b/addons/mail/static/src/js/thread_windows/thread_window.js @@ -402,6 +402,9 @@ var ThreadWindow = AbstractThreadWindow.extend({ * @param {integer} channelID */ _onUpdateChannel: function (channelID) { + if (!this.hasThread()) { + return; + } if (this._thread.getID() !== channelID) { return; } |
