Skip to content

Commit 7d411f1

Browse files
authored
Fix for Mendix 8
the function isCurrency no longer existst in Mendix 8
1 parent dc59120 commit 7d411f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/formatstring/widget/formatstring.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ define([
131131
return returnEnum === "" ? attrObj.emptyReplacement : returnEnum;
132132
}
133133

134-
if (obj.isNumeric(attr) || obj.isCurrency(attr) || obj.getAttributeType(attr) === "AutoNumber") {
134+
if (obj.isNumeric(attr) || (obj.isCurrency && obj.isCurrency(attr)) || obj.getAttributeType(attr) === "AutoNumber") {
135135
var numberOptions = {};
136136
numberOptions.places = attrObj.decimalPrecision;
137137
if (attrObj.groupDigits) {

0 commit comments

Comments
 (0)