Skip to content

Commit

Permalink
Filter value condition for numbers now returns numbers (not strings).
Browse files Browse the repository at this point in the history
  • Loading branch information
evoluteur committed Dec 18, 2019
1 parent faa4861 commit 1d28742
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions js/view-action/action-filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,12 @@ return Backbone.View.extend({
case fts.datetime:
fv.value=formattedDate(vval);
break;
case fts.int:
fv.value=vval && typeof(vval)==='string'?parseInt(vval):null;
break;
case fts.dec:
fv.value=vval && typeof(vval)==='string'?parseFloat(vval):null;
break;
default:
fv.value=vval;
}
Expand Down

0 comments on commit 1d28742

Please sign in to comment.