Skip to content

Commit 1d28742

Browse files
committed
Filter value condition for numbers now returns numbers (not strings).
1 parent faa4861 commit 1d28742

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

js/view-action/action-filter.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,12 @@ return Backbone.View.extend({
515515
case fts.datetime:
516516
fv.value=formattedDate(vval);
517517
break;
518+
case fts.int:
519+
fv.value=vval && typeof(vval)==='string'?parseInt(vval):null;
520+
break;
521+
case fts.dec:
522+
fv.value=vval && typeof(vval)==='string'?parseFloat(vval):null;
523+
break;
518524
default:
519525
fv.value=vval;
520526
}

0 commit comments

Comments
 (0)