[FIX] mail: parent must have on_message_destroy function for set parent_thread

bzr revid: chm@openerp.com-20130201090239-1ekt20v6tiir8vbt
This commit is contained in:
Christophe Matthieu 2013-02-01 10:02:39 +01:00
parent 4e1f2c81ea
commit 622c4975ef
1 changed files with 1 additions and 1 deletions

View File

@ -236,7 +236,7 @@ openerp.mail = function (session) {
this.options.rerender = true;
this.options.toggle_read = true;
}
this.parent_thread = parent.messages != undefined ? parent : this.options.root_thread;
this.parent_thread = typeof parent.on_message_detroy == 'function' ? parent : this.options.root_thread;
this.thread = false;
},