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

Merge pull request #534 from metabase/hotfix_0.9.2_smallint_casting

[hotfix] fix filter widget value casting for SmallIntegerField type.
parents bbc9e6df 10a891ac
No related branches found
No related tags found
No related merge requests found
......@@ -145,6 +145,7 @@ 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" ||
this.state.fieldDef.base_type === "SmallIntegerField" ||
this.state.fieldDef.base_type === "BigIntegerField") {
value = parseInt(value);
} else if (this.state.fieldDef.base_type === "BooleanField") {
......
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