Fixes bug on setting "Creation User" on a external fetched Grant.

This commit is contained in:
gkolokythas 2020-01-13 10:59:48 +02:00
parent 03f025764e
commit 009bd68f71
1 changed files with 1 additions and 0 deletions

View File

@ -691,6 +691,7 @@ public class DataManagementPlanManager {
if (grantEntity != null) grant.setId(grantEntity.getId()); if (grantEntity != null) grant.setId(grantEntity.getId());
else { else {
grant.setType(Grant.GrantType.EXTERNAL.getValue()); grant.setType(Grant.GrantType.EXTERNAL.getValue());
grant.setCreationUser(null);
grantDao.createOrUpdate(grant); grantDao.createOrUpdate(grant);
} }
} }