[FIX] _.intersect renamed to _.intersection in underscore 1.1.7
bzr revid: xmo@openerp.com-20131203083835-btf02ys7vvro28aq
This commit is contained in:
parent
87b5c7990a
commit
5b4d0b9dbb
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue