Skip to content

Commit

Permalink
Support decimalPlaces in validation expressions #230
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisala committed Feb 14, 2024
1 parent d4e44d1 commit 330575d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grails-app/assets/javascripts/forms.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

2 comments on commit 330575d

@chrisala
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@salomon-j I should have committed this on a branch, pls review

@salomon-j
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all good, thank you @chrisala

Please sign in to comment.