From 5b4d0b9dbb14dcba8d0595df06d266f0d5edeb60 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Tue, 3 Dec 2013 09:38:35 +0100 Subject: [PATCH] [FIX] _.intersect renamed to _.intersection in underscore 1.1.7 bzr revid: xmo@openerp.com-20131203083835-btf02ys7vvro28aq --- addons/website/static/src/js/website.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/website/static/src/js/website.js b/addons/website/static/src/js/website.js index 73f39f94afb..79d5f6b9d57 100644 --- a/addons/website/static/src/js/website.js +++ b/addons/website/static/src/js/website.js @@ -198,7 +198,7 @@ init: function() {} }, options || {}); - var type = _.intersect(Object.keys(options), ['input', 'textarea', 'select']); + var type = _.intersection(Object.keys(options), ['input', 'textarea', 'select']); type = type.length ? type[0] : 'text'; options.field_type = type; options.field_name = options.field_name || options[type];