diff options
| author | Christophe Matthieu <chm@openerp.com> | 2013-03-01 14:09:59 +0100 |
|---|---|---|
| committer | Christophe Matthieu <chm@openerp.com> | 2013-03-01 14:09:59 +0100 |
| commit | 403233bcccc75e5b1daaae5e7a2e60eba9297f25 (patch) | |
| tree | 635fc30c4ce36fca3c9e5a4b840d08903b066e60 /addons | |
| parent | b4994795f10417db1ef913fa6efed2025462aa7a (diff) | |
| parent | 35f40a8e6403ec46de70220500ea0f4205b97868 (diff) | |
[MERGE] mail: change list of attachement_ids into a list of ids
bzr revid: chm@openerp.com-20130301130959-mwvmzp02yojcqc37
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/mail/static/src/js/mail.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/mail/static/src/js/mail.js b/addons/mail/static/src/js/mail.js index 0872d049162..e5c8f40eb2e 100644 --- a/addons/mail/static/src/js/mail.js +++ b/addons/mail/static/src/js/mail.js @@ -518,7 +518,7 @@ openerp.mail = function (session) { 'default_composition_mode': default_composition_mode, 'default_parent_id': self.id, 'default_body': mail.ChatterUtils.get_text2html(self.$el ? (self.$el.find('textarea:not(.oe_compact)').val() || '') : ''), - 'default_attachment_ids': self.attachment_ids, + 'default_attachment_ids': _.map(self.attachment_ids, function (file) {return file.id;}), 'default_partner_ids': partner_ids, }; if (default_composition_mode != 'reply' && self.context.default_model && self.context.default_res_id) { |
