Tony CHEMIT pushed to branch develop at ultreiaio / ird-observe Commits: e7cc9e17 by Tony Chemit at 2024-09-19T12:15:22+02:00 Mettre à null le commentaire Batch.comment si celui ci n'est constitué que d'espaces - Closes #2923 - - - - - 1 changed file: - core/persistence/avdth/src/main/java/fr/ird/observe/persistence/avdth/data/localmarket/BatchReader.java Changes: ===================================== core/persistence/avdth/src/main/java/fr/ird/observe/persistence/avdth/data/localmarket/BatchReader.java ===================================== @@ -116,8 +116,13 @@ public class BatchReader extends DataReader<Batch> { String origin = resultSet.getString(8); entity.setOrigin(origin); String comment = resultSet.getString(9); - entity.setComment(comment); - + // See https://gitlab.com/ultreiaio/ird-observe/-/issues/2923 + if (comment != null) { + comment = comment.trim(); + if (!comment.isEmpty()) { + entity.setComment(comment); + } + } return entity; } } View it on GitLab: https://gitlab.com/ultreiaio/ird-observe/-/commit/e7cc9e17a3846303b9bc0be196... -- View it on GitLab: https://gitlab.com/ultreiaio/ird-observe/-/commit/e7cc9e17a3846303b9bc0be196... You're receiving this email because of your account on gitlab.com.
participants (1)
-
Tony CHEMIT (@tchemit)