diff --git a/src/main/java/org/spin/base/util/ValueUtil.java b/src/main/java/org/spin/base/util/ValueUtil.java index ce2bf166e..8b0ae34ae 100644 --- a/src/main/java/org/spin/base/util/ValueUtil.java +++ b/src/main/java/org/spin/base/util/ValueUtil.java @@ -262,8 +262,16 @@ public static Value.Builder getValueFromReference(Object value, int referenceId) return getValueFromDate((Timestamp) value); } else if(DisplayType.isText(referenceId)) { return getValueFromString((String) value); + } else if (DisplayType.Button == referenceId) { + if (value instanceof Integer) { + return getValueFromInteger((Integer) value); + } else if(value instanceof BigDecimal) { + return getValueFromInteger(((BigDecimal) value).intValue()); + } else if (value instanceof String) { + return getValueFromString((String) value); + } } - // + // return builderValue; }