IDEMPIERE-3503:can't csv import when type of column is text long

This commit is contained in:
hieplq 2017-09-25 04:48:41 +07:00
parent 2734bf3f9f
commit 4055d6db4d
1 changed files with 2 additions and 0 deletions

View File

@ -1326,6 +1326,8 @@ public class GridTabCSVImporter implements IGridTabImporter
return (new Optional(new ParseBigDecimal(new DecimalFormatSymbols(Language.getLoginLanguage().getLocale())))); return (new Optional(new ParseBigDecimal(new DecimalFormatSymbols(Language.getLoginLanguage().getLocale()))));
} else if (DisplayType.YesNo == field.getDisplayType()) { } else if (DisplayType.YesNo == field.getDisplayType()) {
return (new Optional(new ParseBool("y", "n"))); return (new Optional(new ParseBool("y", "n")));
} else if (DisplayType.TextLong == field.getDisplayType()) {
return (new Optional(new StrMinMax(1, Long.MAX_VALUE)));
} else if (DisplayType.isText(field.getDisplayType())) { } else if (DisplayType.isText(field.getDisplayType())) {
return (new Optional(new StrMinMax(1, field.getFieldLength()))); return (new Optional(new StrMinMax(1, field.getFieldLength())));
} else { // optional lookups and text } else { // optional lookups and text