Skip to content
Snippets Groups Projects
Commit bbc9e6df authored by Allen Gilliland's avatar Allen Gilliland
Browse files

Merge pull request #520 from metabase/more_value_casting

[hotfix] add value casting for BigIntegerField type in the filter widget
parents c0360681 5af22ec3
No related branches found
No related tags found
No related merge requests found
......@@ -144,7 +144,8 @@ export default React.createClass({
if (value && value.length > 0) {
// value casting. we need the value in the filter to be of the proper type
if (this.state.fieldDef.base_type === "IntegerField") {
if (this.state.fieldDef.base_type === "IntegerField" ||
this.state.fieldDef.base_type === "BigIntegerField") {
value = parseInt(value);
} else if (this.state.fieldDef.base_type === "BooleanField") {
value = (value.toLowerCase() === "true") ? true : false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment