[FIX] mail: js error to format author_id
bzr revid: chm@openerp.com-20130122081210-r90809pxjpyggv7p
This commit is contained in:
parent
f4fd5fd99c
commit
bb61f6fb7d
|
@ -253,7 +253,7 @@ openerp.mail = function (session) {
|
|||
} else {
|
||||
this.avatar = mail.ChatterUtils.get_image(this.session, 'res.users', 'image_small', this.session.uid);
|
||||
}
|
||||
if (this.author_id) {
|
||||
if (this.author_id && this.author_id[1]) {
|
||||
var email = this.author_id[1].match(/(.*)<(.*@.*)>/);
|
||||
if (!email) {
|
||||
this.author_id.push(_.str.escapeHTML(this.author_id[1]), '', this.author_id[1]);
|
||||
|
|
Loading…
Reference in New Issue