[FIX] _.intersect renamed to _.intersection in underscore 1.1.7
bzr revid: xmo@openerp.com-20131203083835-btf02ys7vvro28aq
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user