Skip to content

Commit

Permalink
fix: Return value on field button. (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
EdwinBetanc0urt authored Jun 22, 2022
1 parent 9eedab3 commit 7bbfb6a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/main/java/org/spin/base/util/ValueUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 7bbfb6a

Please sign in to comment.