new version small fix

This commit is contained in:
amentis 2024-04-29 14:35:11 +03:00
parent ebbc92b908
commit e871068443
1 changed files with 1 additions and 0 deletions

View File

@ -383,6 +383,7 @@ public class DmpServiceImpl implements DmpService {
newDmp.setStatus(DmpStatus.Draft); newDmp.setStatus(DmpStatus.Draft);
newDmp.setProperties(oldDmpEntity.getProperties()); newDmp.setProperties(oldDmpEntity.getProperties());
newDmp.setBlueprintId(model.getBlueprintId()); newDmp.setBlueprintId(model.getBlueprintId());
newDmp.setAccessType(oldDmpEntity.getAccessType());
newDmp.setCreatorId(this.userScope.getUserId()); newDmp.setCreatorId(this.userScope.getUserId());
this.entityManager.persist(newDmp); this.entityManager.persist(newDmp);