From 947a1433e115a4118e21d6d848919dc996c5901e Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Thu, 22 Jul 2021 09:15:46 +1200 Subject: [PATCH] Enable range search for money fields Allow total_amount to be exposed for searching by range --- .../admin/ang/afGuiEditor/elements/afGuiField.component.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/afform/admin/ang/afGuiEditor/elements/afGuiField.component.js b/ext/afform/admin/ang/afGuiEditor/elements/afGuiField.component.js index 1be634793f..07408c989d 100644 --- a/ext/afform/admin/ang/afGuiEditor/elements/afGuiField.component.js +++ b/ext/afform/admin/ang/afGuiEditor/elements/afGuiField.component.js @@ -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')) )); }; -- 2.25.1