diff --git a/CHANGELOG b/CHANGELOG index e4cc527cca16dcba3f406e8211c8b1941cd9cf74..f9c5edd6db139a476fc8cca9052210462c8a4891 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -12,6 +12,7 @@ minerva (14.0.0~alpha.1) unstable; urgency=low loaded plugins (#885) * Bug fix: link to molart was brokwn (#886) * Bug fix: context menu visualization fixed + * Bug fix: problem with uploading projects (#887) -- Piotr Gawron <piotr.gawron@uni.lu> Mon, 12 Aug 2019 10:00:00 +0200 diff --git a/service/src/main/java/lcsb/mapviewer/services/impl/ProjectService.java b/service/src/main/java/lcsb/mapviewer/services/impl/ProjectService.java index fbe11c351d72f908b6739f0ee69eeaaa970ecfcc..cb26f8ee298305cd264b726c94b130562602d5cf 100644 --- a/service/src/main/java/lcsb/mapviewer/services/impl/ProjectService.java +++ b/service/src/main/java/lcsb/mapviewer/services/impl/ProjectService.java @@ -679,7 +679,8 @@ public class ProjectService implements IProjectService { */ protected void createModel(final CreateProjectParams params, Project dbProject) throws InvalidInputDataExecption, ConverterException { - UserAnnotationSchema userAnnotationSchema = params.getUser().getAnnotationSchema(); + User dbUser = userDao.getById(params.getUser().getId()); + UserAnnotationSchema userAnnotationSchema = dbUser.getAnnotationSchema(); if (userAnnotationSchema == null) { userAnnotationSchema = new UserAnnotationSchema(); }