[END] This is the end of the world
authorFabien Meghazi <fme@openerp.com>
Tue, 12 Feb 2013 13:30:25 +0000 (14:30 +0100)
committerFabien Meghazi <fme@openerp.com>
Tue, 12 Feb 2013 13:30:25 +0000 (14:30 +0100)
bzr revid: fme@openerp.com-20130212133025-544phlyp83gdabu6

addons/web/static/src/js/views.js

index ad6569b..2cbd966 100644 (file)
@@ -229,8 +229,7 @@ instance.web.ActionManager = instance.web.Widget.extend({
                         // It means that if there's only one item, it will do parseInt() on it,
                         // otherwise it will keep the comma seperated list as string.
                         add_context.active_ids = state.active_ids.toString().split(',').map(function(id) {
-                            var rid = parseInt(id, 10);
-                            return rid || id;
+                            return parseInt(id, 10) || id;
                         });
                     }
                     this.null_action();