[FIX] simplify a computation of raw_fields to make sure it doesn't crash (_.contains expects a list, and not a string) (addon web)
bzr revid: ged@openerp.com-20140130153700-2lno0uefta93ex53
This commit is contained in:
parent
2149c1af03
commit
8ed584d1ac
|
@ -130,7 +130,7 @@ instance.web.Query = instance.web.Class.extend({
|
|||
return null;
|
||||
}
|
||||
var raw_fields = _.map(grouping.concat(this._fields || []), function (field) {
|
||||
return (_.contains(field, ':')) ? field.split(':')[0] : field;
|
||||
return field.split(':')[0];
|
||||
});
|
||||
|
||||
var self = this;
|
||||
|
|
Loading…
Reference in New Issue