[FIX] Fixed error with undefined id when fetching the avatar.
bzr revid: tde@openerp.com-20120227085442-5r4jb0bbor1zpulw
This commit is contained in:
parent
d598492dbd
commit
0c4099ba26
|
@ -136,7 +136,7 @@ openerp.mail = function(session) {
|
|||
},
|
||||
|
||||
thread_get_avatar_mini: function(model, field, id) {
|
||||
return this.session.prefix + '/web/binary/image?session_id=' + this.session.session_id + '&model=' + model + '&field=' + field + '&id=' + id || '';
|
||||
return this.session.prefix + '/web/binary/image?session_id=' + this.session.session_id + '&model=' + model + '&field=' + field + '&id=' + (id || '');
|
||||
},
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue