[FIX] mail: full_message first open

bzr revid: chm@openerp.com-20121019131622-o2ef1afapata7eda
This commit is contained in:
Christophe Matthieu 2012-10-19 15:16:22 +02:00
parent 491034ed0a
commit aefa8b2337
1 changed files with 1 additions and 1 deletions

View File

@ -317,7 +317,7 @@ openerp.mail = function(session) {
'default_res_id': this.context.default_res_id,
'default_content_subtype': 'html',
'default_parent_id': this.datasets.id,
'default_body': mail.ChatterUtils.get_text2html(this.$render_expandable.find('textarea').val() || ''),
'default_body': mail.ChatterUtils.get_text2html(this.$render_expandable ? (this.$render_expandable.find('textarea').val() || '') : ''),
'default_attachment_ids': attachments,
'default_partner_ids': partner_ids
},