Skip to content

Commit ad6cebd

Browse files
authoredSep 10, 2016
Merge pull request #138 from gabrieljenik/patch-2
FIX: parseValues fails when no schema is found
2 parents bb8ef22 + 36c8bff commit ad6cebd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/filter.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ F.renderPagination = function(totalCount){
581581
};
582582

583583
F.parseValues = function(field, values){
584-
var type = this.Model.schema[field];
584+
var type = typeof this.Model.schema == 'undefined' ? 'String' : this.Model.schema[field];
585585

586586
if(type == 'Number'){
587587
return $.map(values, function(v){ return Number(v) });

0 commit comments

Comments
 (0)
Please sign in to comment.