From 0b4a35d62efacf988d5304f3289da16ed293b30e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Fri, 19 Oct 2012 10:36:12 +0200 Subject: [PATCH] [FIX] mail_followers widget: fixed bug trying to get current record id, now using datarecord.id. bzr revid: tde@openerp.com-20121019083612-9oklso9sht5qj5tq --- addons/mail/static/src/js/mail.js | 2 +- addons/mail/static/src/js/mail_followers.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/mail/static/src/js/mail.js b/addons/mail/static/src/js/mail.js index 6c08f2c46d7..bd9ba6ef6f7 100644 --- a/addons/mail/static/src/js/mail.js +++ b/addons/mail/static/src/js/mail.js @@ -671,7 +671,7 @@ openerp.mail = function(session) { (!read && this.options.thread.typeof_thread == 'archives')) { this.animated_destroy({fadeTime:250}); } - + // TDE note: should have a context here this.ds_notification.call('set_message_read', [ids, read]); return false; }, diff --git a/addons/mail/static/src/js/mail_followers.js b/addons/mail/static/src/js/mail_followers.js index 735b3e00e0b..49a919a28a4 100644 --- a/addons/mail/static/src/js/mail_followers.js +++ b/addons/mail/static/src/js/mail_followers.js @@ -188,7 +188,7 @@ openerp_mail_followers = function(session, mail) { display_subtypes:function (data) { var self = this; var subtype_list_ul = this.$('.oe_subtypes'); - var records = data[this.view.dataset.ids[0]].message_subtype_data; + var records = data[this.view.datarecord.id].message_subtype_data; _(records).each(function (record, record_name) { record.name = record_name;