IDEMPIERE-3503:can't csv import when type of column is text long
This commit is contained in:
parent
2734bf3f9f
commit
4055d6db4d
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue