From 330575de6fa507e9e25dd3e67e9441a1cea36966 Mon Sep 17 00:00:00 2001 From: chrisala Date: Wed, 14 Feb 2024 11:35:16 +1100 Subject: [PATCH] Support decimalPlaces in validation expressions #230 --- grails-app/assets/javascripts/forms.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grails-app/assets/javascripts/forms.js b/grails-app/assets/javascripts/forms.js index aa1ae1a..9e0bb60 100644 --- a/grails-app/assets/javascripts/forms.js +++ b/grails-app/assets/javascripts/forms.js @@ -455,7 +455,7 @@ function orEmptyArray(v) { return value.value; } else if (value.expression) { - return ecodata.forms.expressionEvaluator.evaluate(value.expression, context); + return ecodata.forms.expressionEvaluator.evaluate(value.expression, context, value.decimalPlaces); } } else {