Fixes bug missing Project id on default creating Project entity on DMP.

This commit is contained in:
gkolokythas 2019-12-12 13:04:00 +02:00
parent 13b825bafc
commit 7d6790b225
1 changed files with 1 additions and 0 deletions

View File

@ -724,6 +724,7 @@ public class DataManagementPlanManager {
if (projectEntity != null) project.setId(projectEntity.getId());
else {
project.setType(Project.ProjectType.EXTERNAL.getValue());
if (project.getId() == null) project.setId(UUID.randomUUID());
projectDao.createOrUpdate(project);
}
}