Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 36c8bff

Browse files
authoredSep 9, 2016
FIX: parseValues fails when no schema is found
Schema is expected. Nevertheless, If there are no records, no schema will be found, hence failing.
1 parent bb8ef22 commit 36c8bff

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.