diff --git a/src/main/java/neatlogic/framework/form/attribute/core/FormHandlerBase.java b/src/main/java/neatlogic/framework/form/attribute/core/FormHandlerBase.java index 5308163525b4533a57ba522abd97383d906be4f5..fa64dec756424e91e52dd50f577e9bab020e904b 100644 --- a/src/main/java/neatlogic/framework/form/attribute/core/FormHandlerBase.java +++ b/src/main/java/neatlogic/framework/form/attribute/core/FormHandlerBase.java @@ -152,9 +152,9 @@ public abstract class FormHandlerBase implements IFormAttributeHandler, IFormAtt return (String) source; } else if (source instanceof JSONArray && CollectionUtils.isNotEmpty((JSONArray) source)) { return ((JSONArray) source).getString(0); + } else { + return source.toString(); } - - throw new AttributeValidException(attributeLabel); } protected JSONArray convertToJSONArray(Object source, String attributeLabel) {