[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:
Gery Debongnie 2014-01-30 16:37:00 +01:00
parent 2149c1af03
commit 8ed584d1ac
1 changed files with 1 additions and 1 deletions

View File

@ -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;