[FIX] mail: js error to format author_id

bzr revid: chm@openerp.com-20130122081210-r90809pxjpyggv7p
This commit is contained in:
Christophe Matthieu 2013-01-22 09:12:10 +01:00
parent f4fd5fd99c
commit bb61f6fb7d
1 changed files with 1 additions and 1 deletions

View File

@ -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]);