Skip to content

Commit

Permalink
MARP-1315 Handle Feedbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
tvtphuc-axonivy committed Nov 6, 2024
1 parent 2c13e02 commit 3bbba42
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,12 @@ private static void updateColumn(Column column, Cell cell) {
if (cell.getCellType() == CellType.STRING) {
column.setType(String.class);
if (ObjectUtils.isEmpty(column.getDatabaseFieldLength())) {
column.setDatabaseFieldLength(DEFAULT_STRING_LENGTH);
}
column.setDatabaseFieldLength(DEFAULT_STRING_LENGTH);
}
}
if (column.getType().equals(String.class)) {
var cellValue = getCellValueAsString(cell);
if (cellValue.length() > column.getDatabaseFieldLength()) {
if (cellValue.length() > column.getDatabaseFieldLength()) {
column.setDatabaseFieldLength(cellValue.length());
}
}
Expand Down

0 comments on commit 3bbba42

Please sign in to comment.