|
|
@@ -107,7 +107,8 @@ public class ModelFormHelper { |
|
|
|
field.remove("required"); |
|
|
|
} |
|
|
|
|
|
|
|
if (MapUtil.readInt(field, "maxlength") == SwEnum.DataType.instance.getByValue(pdf.dataType).dataLength) { |
|
|
|
final SwEnum.DataTypeBean dtb = SwEnum.DataType.instance.getByValue(pdf.dataType); |
|
|
|
if (dtb != null && MapUtil.readInt(field, "maxlength") == dtb.dataLength) { |
|
|
|
field.remove("maxlength"); |
|
|
|
} |
|
|
|
} |
|
|
@@ -206,7 +207,10 @@ public class ModelFormHelper { |
|
|
|
} |
|
|
|
|
|
|
|
if (!field.containsKey("maxlength")) { |
|
|
|
field.put("maxlength", SwEnum.DataType.instance.getByValue(pdf.dataType).dataLength); |
|
|
|
final SwEnum.DataTypeBean dtb = SwEnum.DataType.instance.getByValue(pdf.dataType); |
|
|
|
if (dtb != null) { |
|
|
|
field.put("maxlength", dtb.dataLength); |
|
|
|
} |
|
|
|
} |
|
|
|
if (!isField) { |
|
|
|
PageDatasetFilter filter = (PageDatasetFilter)pdf; |
|
|
|