[FIX] typo: remember to instantiate objects
authorXavier Morel <xmo@openerp.com>
Thu, 3 May 2012 15:55:32 +0000 (17:55 +0200)
committerXavier Morel <xmo@openerp.com>
Thu, 3 May 2012 15:55:32 +0000 (17:55 +0200)
bzr revid: xmo@openerp.com-20120503155532-q2es166215yfgn7g

addons/web/static/src/js/search.js

index 2c31b54..196fdca 100644 (file)
@@ -1026,7 +1026,7 @@ instance.web.search.Field = instance.web.search.Input.extend( /** @lends instanc
 
         if (contexts.length === 1) { return contexts[0]; }
 
-        return _.extend(instance.web.CompoundContext, {
+        return _.extend(new instance.web.CompoundContext, {
             __contexts: contexts
         });
     },