Fixes bug on not properly saving the Creator of a DMP.
This commit is contained in:
parent
2db15fc713
commit
2e467f8277
|
@ -481,6 +481,7 @@ public class DataManagementPlanManager {
|
||||||
userDMP.setDmp(newDmp);
|
userDMP.setDmp(newDmp);
|
||||||
userDMP.setUser(user);
|
userDMP.setUser(user);
|
||||||
userDMP.setRole((UserDMP.UserDMPRoles.OWNER.getValue()));
|
userDMP.setRole((UserDMP.UserDMPRoles.OWNER.getValue()));
|
||||||
|
apiContext.getOperationsContext().getDatabaseRepository().getUserDmpDao().createOrUpdate(userDMP);
|
||||||
|
|
||||||
copyDatasets(newDmp, apiContext.getOperationsContext().getDatabaseRepository().getDatasetDao());
|
copyDatasets(newDmp, apiContext.getOperationsContext().getDatabaseRepository().getDatasetDao());
|
||||||
} else {
|
} else {
|
||||||
|
@ -505,6 +506,7 @@ public class DataManagementPlanManager {
|
||||||
userDMP.setDmp(newDmp);
|
userDMP.setDmp(newDmp);
|
||||||
userDMP.setUser(user);
|
userDMP.setUser(user);
|
||||||
userDMP.setRole((UserDMP.UserDMPRoles.OWNER.getValue()));
|
userDMP.setRole((UserDMP.UserDMPRoles.OWNER.getValue()));
|
||||||
|
apiContext.getOperationsContext().getDatabaseRepository().getUserDmpDao().createOrUpdate(userDMP);
|
||||||
copyDatasets(newDmp, apiContext.getOperationsContext().getDatabaseRepository().getDatasetDao());
|
copyDatasets(newDmp, apiContext.getOperationsContext().getDatabaseRepository().getDatasetDao());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue