Skip to content

Commit

Permalink
Merge pull request #20930 from eileenmcnaughton/total
Browse files Browse the repository at this point in the history
Enable range search for money fields in search kit + afform
  • Loading branch information
colemanw authored Jul 22, 2021
2 parents 0c60049 + 947a143 commit 0b9f2a6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
// Multiselects cannot use range search
!ctrl.getDefn().input_attrs.multiple &&
// DataType & inputType must make sense for a range
_.includes(['Date', 'Timestamp', 'Integer', 'Float'], ctrl.getDefn().data_type) &&
_.includes(['Date', 'Timestamp', 'Integer', 'Float', 'Money'], ctrl.getDefn().data_type) &&
_.includes(['Date', 'Number', 'Select'], $scope.getProp('input_type'))
));
};
Expand Down

0 comments on commit 0b9f2a6

Please sign in to comment.