Tony CHEMIT pushed to branch develop at ultreiaio / ird-observe Commits: 5c543d62 by Tony CHEMIT at 2018-09-15T13:19:24Z fix api call only for seine model - - - - - 1 changed file: - client/src/main/java/fr/ird/observe/client/ui/content/open/ContentOpenableUIHandler.java Changes: ===================================== client/src/main/java/fr/ird/observe/client/ui/content/open/ContentOpenableUIHandler.java ===================================== @@ -314,16 +314,18 @@ public abstract class ContentOpenableUIHandler<E extends DataDto, U extends Cont ObserveSwingApplicationContext applicationContext = ObserveSwingApplicationContext.get(); ClientValidationContext context = applicationContext.getValidationContext(); - TripSeineDto currentTripSeine = context.getCurrentTripSeine(); - if (currentTripSeine != null && currentTripSeine.isHistoricalData()) { + if (context.getDataContext().getSeine().getTrip().isEnabled()) { + TripSeineDto currentTripSeine = context.getCurrentTripSeine(); - if (log.isInfoEnabled()) { - log.info(prefix + "Using a historical fish trip " + currentTripSeine.getId()); - } - historicalData = true; - } + if (currentTripSeine != null && currentTripSeine.isHistoricalData()) { + if (log.isInfoEnabled()) { + log.info(prefix + "Using a historical fish trip " + currentTripSeine.getId()); + } + historicalData = true; + } + } } model.setHistoricalData(historicalData); View it on GitLab: https://gitlab.com/ultreiaio/ird-observe/commit/5c543d620fe7e7870ac1470067ec... -- View it on GitLab: https://gitlab.com/ultreiaio/ird-observe/commit/5c543d620fe7e7870ac1470067ec... You're receiving this email because of your account on gitlab.com.