Fixes bug missing Project id on default creating Project entity on DMP.
This commit is contained in:
parent
13b825bafc
commit
7d6790b225
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue