← Back to team overview

openerp-community team mailing list archive

lp:~openerp-community/openobject-addons/fix-mail_followers-message_subtype_data into lp:openobject-addons

 

Niels Huylebroeck has proposed merging lp:~openerp-community/openobject-addons/fix-mail_followers-message_subtype_data into lp:openobject-addons.

Requested reviews:
  OpenERP Core Team (openerp)
Related bugs:
  Bug #1096809 in OpenERP Web: "[General Web] Traceback when clicking on page arrows several times in a row"
  https://bugs.launchpad.net/openerp-web/+bug/1096809
  Bug #1097208 in OpenERP Web: "message_subtype_data is undefined"
  https://bugs.launchpad.net/openerp-web/+bug/1097208

For more details, see:
https://code.launchpad.net/~openerp-community/openobject-addons/fix-mail_followers-message_subtype_data/+merge/142291

DaggyFix-style merge request for trunk
-- 
https://code.launchpad.net/~openerp-community/openobject-addons/fix-mail_followers-message_subtype_data/+merge/142291
Your team OpenERP Community is subscribed to branch lp:~openerp-community/openobject-addons/fix-mail_followers-message_subtype_data.
=== modified file 'mail/static/src/js/mail_followers.js'
--- mail/static/src/js/mail_followers.js	2012-12-27 10:37:01 +0000
+++ mail/static/src/js/mail_followers.js	2013-01-08 11:36:01 +0000
@@ -216,6 +216,7 @@
         display_subtypes:function (data) {
             var self = this;
             var subtype_list_ul = this.$('.oe_subtype_list');
+<<<<<<< TREE
             subtype_list_ul.empty();
             var records = data[this.view.datarecord.id || this.view.dataset.ids[0]].message_subtype_data;
             var nb_subtype = 0;
@@ -227,6 +228,14 @@
                     $(session.web.qweb.render('mail.followers.subtype', {'record': record})).appendTo( self.$('.oe_subtype_list') );
                 });
             }
+=======
+            _(data).each(function(i) {records = i.message_subtype_data;});
+            _(records).each(function (record, record_name) {
+                record.name = record_name;
+                record.followed = record.followed || undefined;
+                $(session.web.qweb.render('mail.followers.subtype', {'record': record})).appendTo( self.$('.oe_subtype_list') );
+            });
+>>>>>>> MERGE-SOURCE
         },
 
         do_follow: function () {